Automated Document Cluster Merging for Topic-Based Digital Assistant Interpretation

ABSTRACT

Disclosed are techniques for automatically extracting discovered topics and/or from determined discourse clusters for the generation of a language model that is applicable to interpreting commands received from a digital assistant device. An electronic document corpus can be generated having a plurality of documents that are clustered based on entropy, among other things. The clusters can be associated with a corresponding plurality of cluster attractors that are generally representative of a context of the documents included therein. The documents within the cluster for each of the document clusters can be analyzed, so that clusters determined representative of a hierarchical discourse community can be determined and logically merged. The merged clusters can be analyzed, such that topics and/or sub-topics can be determined and extracted therefrom, for indexing and storage, among other things. In this way, a more efficient searching of the electronic document corpus to interpret received inputs, such as commands received via a digital assistant device, can be facilitated.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation-in-part of U.S. patent applicationSer. No. 15/988,620, titled “LANGUAGE AGNOSTIC COMMAND-UNDERSTANDINGDIGITAL ASSISTANT,” and filed May 24, 2018, which claims priority toU.S. Provisional Patent Application No. 62/611,996, filed Dec. 29, 2017,each of which is assigned or under obligation of assignment to the sameentity as this application, the entire contents of each applicationbeing herein incorporated by reference.

BACKGROUND

Digital assistants have become ubiquitous in a variety of consumerelectronic devices. Modern day digital assistants employ speechrecognition technologies to provide a conversational interface betweenusers and electronic devices. These digital assistants can employvarious algorithms, such as natural language processing, to improve theinterpretation of commands (e.g., requests for specific actions to beperformed and/or for specific information to be provided) received froma user. Consumers have expressed various frustrations with conventionaldigital assistants due to, for instance, frequent misinterpretations ofspoken commands, unavailability of services due to weak signals or alack of signal, privacy concerns, and the general requirement that theconsumer must structure their spoken commands in a language and/orparlance that is uncomfortable or unnatural for them. Further, theactions resulting from these commands in existing digital assistantstypically do not execute within applications selectively installed onusers' mobile devices, which often is what users would like,particularly when they are on the move.

Moreover, as the general pace of society continues to accelerate, so dousers' desires to consume readily-available information. Digitalassistants can enable a seamless interface between users and theirdevices, and can provide a much faster means for the exchange of inputand output information. One digital assistant, particularly the “Q”digital assistant developed by Aiqudo Inc., headquartered in San Jose,Calif., provides such a seamless interface. In other words, the “Q”digital assistant can, among many other things, perform a series ofcustom or predefined tasks (e.g., each series of tasks or computeroperations representing an “action”) based on a received command toaccomplish a desired result.

SUMMARY

This Summary is provided to introduce a selection of concepts in asimplified form that further are described below in the DetailedDescription. This Summary is not intended to identify key features oressential features of the claimed subject matter, nor is it intended tobe used as an aid in determining the scope of the claimed subjectmatter.

Embodiments described in the present disclosure generally are directedtowards command interpretation techniques relating to a digitalassistant for computing devices, such as those that are on the person ofa user when the user is on the move (e.g., cell phones, connectedwatches, devices tethered to cars). In particular, embodiments providean improved context-understanding digital assistant employable tounderstand commands (e.g., queries, instructions) for invokingcorresponding computer processes without human intervention. In otherwords, the described embodiments relate to improved techniques forgenerating language models that facilitate an accurate and automatedunderstanding of intention of commands (expressed as “commands”)received by a digital assistant computing device, and employing thegenerated language models to interpret the received commands to selectappropriate sets of computer processes (e.g., actions) to invoke on thedigital assistant computing device in response to the received commands.

In statistical natural language processing systems, natural languageunderstanding is generally facilitated utilizing mathematical algorithmsthat focus on statistical inferences to automatically generate rulesbased on an analyzed corpora of documents. However, such conventionalsystems are still limited in their ability to accurately understand thecontext of a received input (e.g., command, speech input), which in adigital assistant system, can be problematic and annoying to consumers.As such, in accordance with various embodiments of the presentdisclosure, various techniques are described applying principles ofdiscourse communities, semiotics, and intertextuality for the generationof more sophisticated language models, such that computing devices, likea digital assistant, can better interpret and decipher inputs receivedfrom a user. Employing techniques described herein, a digital assistantcan receive a vague or undefined command that has not been mapped to anoperation (e.g., action) to be performed, and accurately determine thelikely meaning of the received vague or undefined command to initiateexecution of the appropriate operation.

Various embodiments described herein employ lower-level conceptsdiscussed in U.S. Pat. No. 7,747,593 (the '593 Patent), titled “ComputerAided Document Retrieval,” which is assigned or under obligation ofassignment to the same entity as this application, the entire contentsof which is herein incorporated by reference. The '593 patent generallydescribes techniques for determining cluster attractors for a documentcorpus having a plurality of documents, clustering the plurality ofdocuments based on the determined cluster attractors, indexing thedocument corpus into clusters based on specific narrow contexts (e.g.,the determined cluster attractors) automatically identified from thecorpus as a whole, and discovering narrow contexts (e.g., determinedcluster attractors) relevant to a received query to facilitate retrievalfrom the corpus. Among other things, the '593 patent describes that anarrow contexts can be determined for each electronic document in aplurality of electronic documents based on a set of words included inthe electronic document determined to be shared by (e.g., also includedin) one or more other electronic documents in the plurality ofelectronic documents. Among other things, one or more document clusterscan be generated from the plurality of electronic documents based on thedetermined contexts.

Employing such concepts, the various embodiments described hereinimprove on these techniques by generating improved semantic groups ofdocuments, identifying representative phrases of semantic documentgroups, discovering topics and/or sub-topics of semantic documentgroups, indexing the documents of a document corpus based on thediscovered topics and/or sub-topics, and employing search andinterpretation techniques to automatically understand commands receivedvia a digital assistant. Further embodiments describe techniques forgenerating a corpus of documents that correspond to commandsinterpretable by a digital assistant, and employing the aforementionedtechniques for generating a language model that is specific to thedigital assistant command space. Employing such techniques, a digitalassistant device and/or associated digital assistant server cangenerate, develop, maintain, and/or employ a more sophisticated andrelevant language model to understand context and meaning of a receivedcommand, such as those relevant to digital assistants, with minimal tono training intervention. In this regard, in situations where anenormous quantity of potential commands would be nearly impossible toidentify (e.g., for mapping to appropriate actions) or intelligentlyinterpret for an ever-increasing number of available mobileapplications, a digital assistant device and/or associated digitalassistant server employing technologies described herein can accuratelyunderstand the meaning of a received command to invoke an appropriateaction on a digital assistant device in accordance with embodimentsdescribed herein.

In some embodiments, a plurality of defined commands that are eachmapped to one of a plurality of action datasets is obtained. For eachdefined command of the obtained plurality of defined commands, anassociated set of synthetic documents is generated based on a determinedrelevant set of documents retrieved from at least one remote datarepository. Each synthetic document of the generated sets of syntheticdocuments is then modified to include a tag that corresponds to theassociated defined command. In accordance with some embodiments, aplurality of document clusters is generated based on the modifiedsynthetic documents, thereby providing a means for generating acommand-specific language model index. When a command is received from adigital assistant device, a search of the command is performed utilizingthe generated command-specific language model index, and a set ofmodified synthetic documents from the generated plurality of documentclusters determined relevant to the received command is identified andranked based on relevance to the received command. One of the pluralityof action datasets mapped to one of the plurality of defined commandsdetermined to correspond to the tag included in at least one determinedmost relevant modified synthetic document of the identified set ofmodified synthetic documents is selected for communication to thedigital assistant device. In some aspects, a plurality or a predefinednumber of determined most relevant modified synthetic documents can beselected, ranked, scored, groups, or indexed, among other things, basedon various determinations, such as those described below and in partdescribed in U.S. patent application Ser. No. 16/047,782, titled“Ranking and Boosting Relevant Distributable Digital AssistantOperations,” which is assigned or under obligation of assignment to thesame entity as this application, the entire contents of each applicationbeing herein incorporated by reference.

In some embodiments, employing linguistic principles of intertextuality,representative phrases corresponding to document clusters generated forindexing electronic documents can be determined. In other words, termsor phrases that are representative of a context communicated throughoutthe documents included in each document cluster are identified. Thedocuments of a given document corpus, such as one generated based onretrieved relevant documents and/or generated synthetic documents, areclustered based on calculated weights and probability distributions ofthe various terms included therein, among other things. For eachdocument in a generated document cluster, the document (e.g., a seeddocument) is compared relative to other documents within the generateddocument cluster to determine and define a document “section” associatedwith the document of a generated document cluster. The defined documentsection includes electronic documents contextually relevant to a seeddocument. Further, the documents within an identified section of eachseed document can be compared (e.g., to the seed document) to identifyterms that are common or shared there between, such that the identifiedcommon terms are representative of the seed document's section. Theidentified common terms representative of a seed document can be rankedto identify a most relevant set of representative terms. For all seeddocuments (e.g., documents) in a document cluster, a score or weight iscalculated for the identified common terms representative of its seeddocuments (e.g., documents). In this regard, a highest scored number ofidentified common terms representative of the documents within adocument cluster can be selected and stored as a representative set ofterms or phrases for the document cluster. Provided the foregoing, therepresentative sets of terms or phrases representing the variousdocument clusters can be indexed and employed to more efficiently searchthe corpus of electronic documents for purposes of interpreting receivedcommands, among other things.

In some embodiments, documents of a generated document corpus that areclustered for purposes of generating a relevant language model index,such as one directed to digital assistant commands, can be strategicallylinked (e.g., merged) to generate organized sets of documents (i.e.,semantic groups of documents) that provide an improved and moreefficient language model index employable for purposes of automatedcommand interpretation, among other things. A document corpus comprisinga plurality of electronic documents is grouped into various documentclusters, and a representative set of terms or phrases that representthe documents within each cluster are assigned (e.g., mapped) to thecluster. Various subsets of the clusters are then selectively merged(e.g., logically linked) based on identified common representative setsof terms or phrases there between, among other things. In this way,semantic groups, identifiable by the representative sets of terms orphrases for the document clusters therein, can be generated for purposesof generating a searchable and higher-level language model index. Thesemantic groups of electronic documents, generated from a corpus ofunstructured electronic documents, can be employed to identify andextract, among other things, concepts, topics, sub-topics, and relativerelationships between documents of a document corpus, which can bestored, indexed, and employed to improve efficiencies in naturallanguage processing, such as interpreting commands received from adigital assistant.

Employing the various embodiments described herein, a more sophisticatedlanguage model and searchable index can be generated and employed tointerpret commands received from a digital assistant device, despite thereceived commands being undefined or unmapped to a corresponding action.In this way, received commands can be intelligently interpreted toselect and initiate an appropriate action for execution via the digitalassistant device.

BRIEF DESCRIPTION OF THE DRAWINGS

The present disclosure is described in detail below with reference tothe attached drawing figures, wherein:

FIG. 1 depicts an exemplary operating environment suitable for use inimplementing some embodiments of the present disclosure;

FIG. 2. is a block diagram illustrating an exemplary digital assistantdevice in accordance with some embodiments of the present disclosure;

FIG. 3 is a block diagram illustrating an exemplary digital assistantserver in accordance with some embodiments of the present disclosure;

FIG. 4 is a block diagram illustrating an exemplary action dataset inaccordance with some embodiments of the present disclosure;

FIG. 5 is a block diagram illustrating an exemplary language modelgenerating component in accordance with some embodiments of the presentdisclosure;

FIGS. 6-8 are relational diagrams illustrating relationships betweendocument clusters in accordance with some embodiments of the presentdisclosure;

FIGS. 9-13 are relational diagrams illustrating the identification oftopics and/or sub-topics from document clusters in accordance with someembodiments of the present disclosure;

FIG. 14 is a relational diagram illustrating a document corpus havingdocument clusters indexed based on topics and/or sub-topics inaccordance with some embodiments of the present disclosure;

FIG. 15 is a flow diagram showing a method for generating acommand-space specific language model in accordance with someembodiments of the present disclosure;

FIG. 16 is a flow diagram showing a method for extracting representativephrases from generated document clusters in accordance with someembodiments of the present disclosure;

FIG. 17 is a flow diagram showing a method for extracting topics and/orsub-topics from semantically-grouped document clusters in accordancewith some embodiments of the present disclosure; and

FIG. 18 is a block diagram of an exemplary computing environmentsuitable for use in implementing some embodiments of the presentdisclosure.

DETAILED DESCRIPTION

The subject matter of aspects of the present disclosure is describedwith specificity herein to meet statutory requirements. However, thedescription itself is not intended to limit the scope of this patent.Rather, the inventors have contemplated that the claimed subject matteralso might be embodied in other ways, to include different steps orcombinations of steps similar to the ones described in this document, inconjunction with other present or future technologies. Moreover,although the terms “step” and/or “block” may be used herein to connotedifferent elements of methods employed, the terms should not beinterpreted as implying any particular order among or between varioussteps herein disclosed unless and except when the order of individualsteps is explicitly described.

As electronic devices become more integrated into our daily lives, so dothe methods in which we can interface with them. Digital assistants havefound a place in many peoples' homes, providing voice-activated servicesthat can assist users with various tasks, from a basic level to a veryadvanced level. However, conventional digital assistants are mostlylimited to the capabilities that the service provider and theirdevelopers implement. Some service providers and developers provide anopen interface (e.g., an API) such that third-parties can develop customservices that can essentially “plug in” to the digital assistant andprovide additional services. In this regard, users are generally at themercy of these developers and must adapt to the specific commandsprogrammed into these digital assistants.

For the most part, modern-day society has adopted the use of mobilecomputing devices, such as smart phones. Users generally prefer to carryportable computing devices on their person, having a readily-availableresource for accessing information and providing a means forcommunication. Users can download and install applications of theirchoosing, and maintain settings that are customized to their personalpreferences. The number of applications providing unique services tousers is astounding, increasing by the thousands daily. In this regard,it is improbable to provide digital assistant services that can cater tothe needs of all users, particularly based on the various servicesprovided by the applications preferred and utilized by the users.Moreover, it is impractical to provide digital assistant services thatcan cater to the natural dialect of these users.

As such, a digital assistant having easily customizable commands andactions that can be performed by the digital assistant, based on thereceipt of a command in a variety of languages and/or dialects,alleviates the aforementioned issues. That is, by providing the power ofintuitive command and action on-boarding to the users, each user canprovide unique commands that may be natural for only a very smallpercentage of their peers. Yet, a digital assistant having the abilityto understand the requirements and needs of such users can begroundbreaking.

The maintenance and training of a language model that is employable forinterpreting digital assistant commands applicable to an ever-growingmarketplace of applications, such as mobile applications, can beunreasonably difficult to maintain and resource intensive. As brieflynoted above, the “Q” digital assistant, developed by Aiqudo, Inc.,headquartered in San Jose, Calif., has implemented customizableautomation into the digital assistant. In other words, the “Q” digitalassistant can, among many other things, perform a series of predefinedtasks (e.g., “actions”) based on the receipt of an input (e.g., a“command”), which can be text-based (e.g., converted from speech), toaccomplish a desired result. In addition, the “Q” digital assistantprovides a plethora of additional services, such as crowd-sourceddefinitions of various commands and action datasets that arequality-assured by intelligent algorithms, essentially eliminating theneed for a novice user to “train” their digital assistant to work withtheir preferred applications. While solutions made available by the “Q”digital assistant can alleviate many of the concerns posed byconventional digital assistants, such as the ability to generatecustomizable commands and actions, there still remain some areas ofimprovement to properly understand commands received from a user of adigital assistant device.

Aspects of the technology described herein are generally directedtowards natural language processing techniques for invoking determinedmost-relevant mobile application operations via a digital assistantdevice. Various embodiments described herein relate to solutions forgenerating more efficient language models employable to determine theunderstanding and desire communicated through a command, received from auser via an associated digital assistant device, to invoke the mostrelevant and likely candidate action(s) on the user's digital assistantdevice.

In some aspects, systems and techniques for generating a language modeland searchable index specific to the digital assistant command-space isprovided. More specifically, commands that are potentially unique toactions to be automatically performed on applications installed on adigital assistant device, such as a mobile computing device, can bebetter understood based on the various techniques described herein. Insome further aspects, systems and techniques for generatingcontextually-relevant document clusters and semantic groups from anelectronic document corpus can provide an optimized language modelhaving a searchable index that is organized by high level concepts,topics, and/or sub-topics. In other words, a corpus of electronicdocuments for generating a language model relevant to on-boarded commandtemplates and/or action datasets can be analyzed and organized utilizinglinguistic principles of discourse communities and intertextuality tomore efficiently search relevant portions of the corpus and determinethe understanding of a received command.

System Overview

A computing device incorporating the “Q” digital assistant (e.g., adigital assistant device) can receive a command, which can be translatedto text from a spoken command. The digital assistant device can, in someembodiments, employ services local to the user device (e.g., speech totext engine) to facilitate the conversion to text (e.g., an alphanumericstring). The digital assistant can then employ natural languageprocessing to analyze the text for any recognized command templatesstored thereon, that may be serviced by applications already-installedor required-to-be-installed by the user. In some instances, the commandsmay include parameters (e.g., variables) that are recognized by thedigital assistant as well. In other words, a command can, in someinstances, require a parameter to invoke a corresponding action (e.g., aset of application-specific operations or instructions) and achieve aspecific result that is based on the provided parameter. In someaspects, the digital assistant device can facilitate the inclusion ofone or more parameters into the commands associated with an action.

The text of the command can be analyzed to determine whether any commandtemplates (with or without parameters), which may be serviced byapplications already-installed or required-to-be-installed by the user,correspond thereto. Provided that an application capable to service thecommand is installed (or subsequently installed) on the user device, thedigital assistant device then can interpret an action determined tocorrespond to the received command (and matching template) to automate aseries of predefined tasks, which can include, by way of example only:launching the application, emulating touch inputs for button presses orapplication navigation, passing parameters into application form fields,waiting for application or remotely-communicated responses, and manymore, until the automated “action” is fully executed and the user isprovided with a result of the provided command.

As described, when the automated action is being executed by the digitalassistant device, or in other words, when the various steps associatedwith an automated action are being performed, the various steps requiredto complete the action are emulated by the digital assistant. Inessence, and by way of example only, the user can provide a voicecommand to the digital assistant, such as “get me a ride to theairport,” the digital assistant can determine that a particularapplication can provide this service, determine a current location ofthe user and a nearest airport, and launch a ridesharing applicationthat the digital assistant can pass the “current location” and “airport”parameters to. Any additional inputs, such as selection of a “submit”button also can be automated by the digital assistant, provided thatsuch tasks are included in the predefined action corresponding to thereceived command.

To facilitate the creation of new actions (e.g., one or more tasks,performance of which results in achievement of a desired result), actiondatasets can be generated, via a digital assistant device. In accordancewith embodiments described herein, a newly generated action dataset isrepresentative of a desired action that can be invoked upon the creatinguser simply announcing or providing to the digital assistant device, acommand corresponding to one of the commands templates associated withthe action.

To facilitate distribution of action datasets created by a number ofdigital assistant devices, action datasets can be communicated to acentral computing device (e.g., a digital assistant server) for storageand mapping to a searchable index, as will be described. While commandsassociated with a series of events embodying an action can be providedin any language and/or dialect that is natural to the action-creatinguser, it is contemplated that the action dataset should also be usefulto a user of another digital assistant device speaking in other dialectsor using vague or unconventional terminologies. In this regard,embodiments described herein relate to techniques for generating alanguage model that can be specific to the command-space of a digitalassistant device, such as the “Q” Assistant, but also for generatingintelligently linked document clusters that provide an improved languagemodel for interpreting and/or understanding received commands, therebyproviding digital assistant devices with determined most relevant orappropriate action datasets in response to received commands despite thedialect, vagueness, unconventional delivery, or undefined state, of thecommand.

In some embodiments, a “command template,” as the term is utilizedherein, is an alphanumeric representation of a command, or at leastportions thereof, that is generally spoken or otherwise verballyprovided. A received command is compared to command templates toidentify corresponding actions. In some embodiments, command templatesassociated with an action dataset can be stored by a central computingdevice (e.g., a digital assistant server). The indexing of such commandtemplates can be performed by the central computing device, so that whenany one or more commands are communicated thereto (e.g., by a digitalassistant device), one or more proper or most relevant action datasetscan be identified and returned to the digital assistant device so thatthe action dataset(s) can be interpreted thereby and the correspondingtasks (e.g., operations) are performed thereon. In embodiments, thecentral computing device can distribute at least a portion of one ormore action datasets to a plurality of other digital assistant deviceshaving an instance of the digital assistant executing (or available forexecution) thereon. In this way, any user of the plurality of computingdevices simply can announce (e.g., via input or communication of one ormore character strings or spoken data) a command corresponding to one ofthe command templates associated with the action to perform the exactsame series of events and achieve the desired result on their digitalassistant device.

In embodiments, a command announced by a user of one of the plurality ofother digital assistant devices can be communicated in the form of analphanumeric string to the central computing device. As such, thecentral computing device, upon receipt of a command, can search alanguage model comprising electronic documents that are each mapped toone of a plurality of stored action datasets, to identify and select atleast one relevant action dataset. In this way, selected action datasetscan be provided to the client device based on the command received.

An instruction to generate an action dataset can be received by adigital assistant executing on a client computing device. In someembodiments, the instruction specifies that the action dataset is to beassociated with one of a plurality of applications installed on thecomputing device. The client computing device, by way of the digitalassistant, detects a set of inputs that corresponds to the particularapplication and receives a set of command templates for association withthe set of inputs. In some embodiments, a set of commands is received inthe language of the user (e.g., the action on-boarding user), who canalso identify terms within each command that are required parameters toinvoke the action, if applicable. In this way, command templates can bedefined by the user. It is contemplated that command templates may ormay not have parameters in accordance with embodiments described herein.

In various embodiments, a digital assistant device can either storecommand templates and action datasets locally, or can communicatereceived commands to the central computing device to receive acorresponding appropriate action dataset that can be interpreted toperform the appropriate tasks. When a command is communicated to thecentral computing device, it can search the indexed electronicdocuments, each being mapped to one of a plurality of stored actiondatasets, to determine one or more most relevant action datasets. Whenone or more determined relevant action dataset is identified, thecentral computing device can communicate at least a portion of the oneor more determined relevant action datasets to the digital assistantdevice for storage thereon and/or interpretation to perform thecorresponding tasks. In this regard, the central computing device canidentify appropriate action(s) that correspond to the received command.

There are, however, circumstances where a user provides (e.g., speaksto, inputs) an associated digital assistant device with an undefinedcommand (e.g., a command that is vague, unclear, non-descriptive, in astrange dialect, using slang or alternative terms, or is simplyundefined or unmapped to a corresponding action dataset). In thisregard, embodiments herein describe techniques to generate a languagemodel that is specific to known (e.g., defined) commands or commandtemplates that are mapped to corresponding action datasets. The centralcomputing device can retrieve, for each defined command or commandtemplate, relevant electronic content (e.g., from the web or a datarepository) based on the command template or the terms therein.Utilizing the retrieved relevant electronic content, the centralcomputing device can generate a highly-sophisticated language model bygenerating synthetic documents based on excerpts extracted from theretrieved electronic content, generate relevant document clusters basedon the generated synthetic documents, intelligently link (e.g., merge)the generated document clusters to generate semantic groups ofdocuments, and determine relevant phrases and/or concepts for thegenerated semantic groups. The generated language model can be employedto search received commands, such as those that are undefined, andidentify action datasets that most-likely correspond to the receivedcommand. Embodiments herein thus describe techniques to facilitate theselection of relevant action datasets based on received undefinedcommands. In this regard, relevant action datasets can be identified andselected for distribution even for received commands that are typicallyuninterpretable using conventional natural language processingtechniques.

When the most relevant action dataset(s) is determined and selected, thecentral computing device can send the determined most relevant actiondataset(s) to the digital assistant device, so that the appropriateaction is performed thereon or presented as a selectable option (e.g.,if more than one action dataset is determined most relevant). It isfurther contemplated that in some further embodiments, the undefinedcommand can also be incorporated (e.g., included) into the actiondataset ultimately communicated back to the digital assistant device,for local storage and future recognition of the command at a later time.In such embodiments, it is contemplated that the digital assistantdevice can recognize the command from the user's digital assistantdevice without having to maintain a network connection to the centralcomputing device. It is further contemplated that future modificationsto the action dataset can be pushed from the central computing device tovarious other digital assistant devices, or retrieved by various otherdigital assistant devices from the central computing device.

Accordingly, at a high level and with reference to FIG. 1, an exampleoperating environment 100 in which some embodiments of the presentdisclosure may be employed is depicted. It should be understood thatthis and other arrangements and/or features described by the encloseddocument are set forth only as examples. Other arrangements and elements(e.g., machines, interfaces, functions, orders, and groupings offunctions, etc.) or features can be used in addition to or instead ofthose described, and some elements or features may be omitted altogetherfor the sake of clarity. Further, many of the elements or featuresdescribed in the enclosed document may be implemented in one or morecomponents, or as discrete or distributed components or in conjunctionwith other components, and in any suitable combination and location.Various functions described herein as being performed by one or moreentities may be carried out by hardware, firmware, and/or software. Forinstance, some functions may be carried out by a processor executinginstructions stored in memory.

The system in FIG. 1 includes one or more digital assistant devices 110,115 a, 115 b, 115 c, . . . 115 n, in communication with a server 120 viaa network 130 (e.g., the Internet). In this example, the server 120,also in communication with the network 130, is in communication witheach of the digital assistant devices 110, 115 a-115 n, and can also bein communication with a database 140. The database 140 can be directlycoupled to the server 120 or coupled to the server 120 via the network130. The digital assistant device 110, representative of other digitalassistant devices 115 a-115 n, can include a computing device comprisingone or more applications 112 and a digital assistant component 114installed and/or executing thereon.

The one or more applications 112 includes any application that isexecutable on the digital assistant device 110, and can includeapplications installed via an application marketplace, customapplications, web applications, side-loaded applications, applicationsincluded in the operating system of the digital assistant device 110, orany other application that can be reasonably considered to fit thegeneral definition of an application or mobile application. On the otherhand, the digital assistant component 114 can provide digital assistantservices locally via the digital assistant device 110 or remotelyprovided by the server 120 via the network 130, and can be implementedat least partially into an operating system, hardware layer, or firmwareof the digital assistant device 110. In accordance with embodimentsdescribed herein, the digital assistant component 114 provides aninterface between a digital assistant device 110 and an associated user(not shown), generally via a speech-based exchanged, although any othermethod of exchange between user and digital assistant device 110 (e.g.,keyboard input, communication from another digital assistant device orcomputing device) remains within the purview of the present disclosure.

When a speech-based input (e.g., a voice command) is detected andreceived by the digital assistant device 110, the digital assistantcomponent 114 can convert the speech command to text utilizing aspeech-to-text engine (not shown) to extract identified terms andgenerate a command. In some embodiments, the digital assistant component114 can receive the command, and determine that the command correspondsto at least one command template of at least one action dataset storedin a memory of the digital assistant device. In some other embodiments,the digital assistant component 114 can receive the command, communicatethe received command to the server 120 so that the server 120 candetermine that the command corresponds to at least one command templateof at least one action dataset stored in a memory accessible to theserver 120, such as database 140. In this regard, the server 120 canselect at least one determined corresponding action dataset andcommunicate it to the digital assistant component 114 for interpretationthereby. In some embodiments, the digital assistant component 114 and/orserver 120 can generate an index of all stored command templates forfaster searching and comparison of the received command, to identify arelevant and/or corresponding command template, and thereby select arelevant and/or corresponding action dataset. Each indexed commandtemplate can be mapped to a corresponding action dataset, which can beinterpreted by the digital assistant component 114 for execution basedon a determined match between the received command and a commandtemplate and/or a selection of a command template based on a determinedrelevance to the received command.

By way of brief overview, a command template can include one or morekeywords and/or one or more parameters that each have a correspondingparameter type. Each command template generally corresponds to anoperation that can be performed on one or more applications 112installed on a digital assistant device 110. Moreover, a plurality ofcommand templates can correspond to a single operation, such that thereare multiple equivalent commands that can invoke the same operation. Byway of example only, commands such as “check in,” check into flight,”“please check in,” “check into flight now,” “check in to flight 12345,”and the like, can all invoke the same operation that, by way of exampleonly, directs the digital assistant component 114 to execute anappropriate airline application on the digital assistant device 110 andperform a predefined set of events or computer operations to achieve thesame result.

The aforementioned commands, however, may lack appropriate information(e.g., the specific airline). As one of ordinary skill may appreciate, auser may have multiple applications 112 from various vendors (e.g.,airlines) associated with a similar service (e.g., checking intoflights). A digital assistant device 110 in accordance with embodimentsdescribed herein can provide features that can determine contextualinformation associated with the digital assistant device 110, or itsassociated user, based on historical use of the digital assistant device110, profile information stored on the digital assistant device 110 orserver 120, stored parameters from previous interactions or receivedcommands, indexed messages (e.g., email, text messages) stored on thedigital assistant device, and a variety of other types of data storedlocally or remotely on a server, such as server 120, to identify a mostrelevant parameter and supplement a command to select a most relevantaction dataset. More specific commands, such as “check intoFriendlyAirline flight,” or “FriendlyAirline check in,” and the like,where a parameter is specifically defined in the command, can berecognized by the digital assistant component 114.

One or more recognizable commands and corresponding action datasets canbe received by the digital assistant device 110 from the server 120 atany time, including upon installation, initialization, or invocation ofthe digital assistant component 114, after or upon receipt of a speechcommand by the digital assistant component 114, after or uponinstallation of a new application 112, periodically (e.g., once a day),when pushed to the digital assistant device 110 from the server 120,among many other configurations. It is contemplated that the actiondatasets received by the digital assistant device 110 from the server120 can be limited based at least in part on the applications 112installed on the digital assistant device 110, although configurationswhere a larger or smaller set of action datasets received arecontemplated.

In some embodiments, in the event an action dataset is determined notavailable for a particular application 112 installed on the digitalassistant device 110, digital assistant component 114 can eitherredirect the user to a marketplace (e.g., launch an app marketplaceapplication) to install the appropriate application determined by theserver 120 based on the received command, or can invoke an actiontraining program that prompts a user to manually perform tasks on one ormore applications to achieve the desired result, the tasks beingrecorded and stored into a new action dataset by the digital assistantdevice 110. The digital assistant component 114 can also receive one ormore commands from the user (e.g., via speech or text) to associate withthe action dataset being generated. If the command includes variableparameters (e.g., optional fields), the action training program canfacilitate a definition of such parameters and corresponding parametertypes to generate command templates for inclusion in the action datasetbeing generated. In this way, a command template(s) is associated withat least the particular application designated by the user and alsocorresponds to the one or more tasks manually performed by the user,associating the generated command template to the task(s) and thus thedesired resulting operation.

In some embodiments, the server 120 can provide one or more determinedmost-relevant action datasets to the digital assistant device 110 basedon the received command communicated to the server 120. As described,the server 120 can store and index a constantly-growing and evolvingplurality of crowd-sourced action datasets submitted by or received fromany of digital assistant devices 115 a-115 n also independently having adigital assistant component 114 and any number of applications 112installed thereon. The digital assistant devices 115 a-115 n may haveany combination of applications 112 installed thereon, and anygeneration of action datasets performed on any digital assistant device110, 115-115 n can be communicated to the server 120 to be stored andindexed for mass or selective deployment, among other things. In someaspects, the server 120 can include any variety of search engines,relevance engines, and/or machine-learned algorithms to provide a levelof quality assurance on command templates included in on-boarded actiondatasets and/or the tasks and operations performed before they aredistributed to other digital assistant devices via the network 130.

When the digital assistant component 114 either locally selects orreceives, from server 120, a determined relevant action dataset based onthe command, the digital assistant component 114 can generate an overlayinterface that can mask any or all visual outputs associated with thedetermined action or the computing device, generally. The generation ofthe overlay interface can include a selection, by the digital assistantcomponent 114, of one or more user interface elements that are stored ina memory of the digital assistant device 110 or server 120, and/orinclude a dynamic generation of the user interface element(s) by thedigital assistant component 114 or server 120 based on one or moreportions of the received command, command, and/or obtained contextualdata (e.g., determined location data, user profile associated with thedigital assistant device 110 or digital assistant component 114,historical data associated with the user profile, etc.) obtained by thedigital assistant device 110, digital assistant component 114, and/orserver 120. The selected or generated one or more user interfaceelements can each include content that is relevant to one or moreportions (e.g., terms, keywords) of the received command. In the eventof dynamic generation of user interface elements, such elements can besaved locally on the digital assistant device 110 or remotely on theserver 120 for subsequent retrieval by the digital assistant device 110,or can be discarded and dynamically regenerated at any time.

Example operating environment depicted in FIG. 1 is suitable for use inimplementing various embodiments of the invention. Generally,environment 100 is suitable for creating, on-boarding, storing,indexing, crowd-sourcing, selecting, distributing, and invoking actiondatasets that are interpretable to perform a corresponding set of tasksor operations on a digital assistant device 110. Environment 100includes digital assistant device 110, digital assistant server 120(hereinafter also referenced as “server” or “digital assistant server”)and network 130. Digital assistant device 110 can be any kind ofcomputing device having a digital assistant component 114 installed inand/or executing thereon. For example, in an embodiment, digitalassistant device 110 can be a computing device such as computing device1800, as described below with reference to FIG. 18. In variousembodiments, digital assistant device 110 can be a personal computer(PC), a laptop computer, a workstation, a mobile computing device, aPDA, a cell phone, a smart watch or wearable, or the like. A digitalassistant device 110 can include one or more applications 112 installedand executable thereon. The one or more applications 112 can include anyapplication that is executable on the digital assistant device 110, andcan include applications installed via an application marketplace,custom applications, web applications, side-loaded applications,applications included in the operating system of the digital assistantdevice 110, or any other application that can be reasonably consideredto fit the general definition of a software application. On the otherhand, the digital assistant component 110 can include an application, aservice accessible via an application installed on the digital assistantdevice 110 or via the network 130, or implemented into hardware,firmware, or a layer of an operating system of the digital assistantdevice 110. In accordance with embodiments described herein, the digitalassistant component 114 can provide an interface between a digitalassistant device 110 and a user (not shown), generally via aspeech-based exchange, although any other method of exchange betweenuser and digital assistant device may be considered within the purviewof the present disclosure.

Similarly, digital assistant server 120 (“server”) can include any kindof computing device comprising components capable of facilitating theon-boarding, storage, management, indexing, searching, relevancedetermination, and distribution of crowd-sourced action datasets. Forexample, in an embodiment, digital assistant server 120 can be acomputing device such as computing device 1800, as described below withreference to FIG. 18. In some embodiments, digital assistant server 120comprises one or more server computers, distributed or otherwise.Generally, any of the components of environment 100 may communicate witheach other via a network 130, which may include, without limitation, oneor more local area networks (LANs) and/or wide area networks (WANs).Such networking environments are commonplace in offices, enterprise-widecomputer networks, intranets, and the Internet. The digital assistantserver 120 can include or be in communication with one or more datasources 140, which may comprise data sources and/or data systems,configured to make data available to any of the various constituents ofthe operating environment 100. Data source(s) 140 may be discrete fromthe illustrated components, or any combination thereof, or may beincorporated and/or integrated into at least one of those devices orcomponents.

The Digital Assistant Device

Referring now to FIG. 2, a block diagram 200 of an exemplary digitalassistant device 210 suitable for use in implementing embodiments of theinvention is shown. Generally, digital assistant device 210 (alsodepicted as digital assistant device 110 of FIG. 1) is suitable fordetecting speech-based commands, converting the speech-based commands tocommands in text-based form, receiving the commands, selecting actiondatasets to execute by matching the received commands to commandtemplates of action datasets, determining that no locally-stored actiondatasets correspond to received commands, interpreting a selected orreceived action dataset to execute the associated operation, generatingnew action datasets, and sending action datasets to or receiving actiondatasets from a digital assistant server, such as server 120 of FIG. 1.

Digital assistant device 210 can include, among other things, a commandreceiving component 220, an action matching component 230, an actionexecuting component 240, a training component 250, and a serverinterfacing component 260. The command receiving component 220 canreceive a command, either in the form of speech data or text data. Thespeech data can be received via a microphone (not shown) of the digitalassistant device 210, or another computing device paired to or incommunication with the digital assistant device 210. The commandreceiving component 220, after receiving the speech data, can employ aspeech-to-text engine of the digital assistant device 210 to generate acommand (e.g., an alphanumeric string corresponding to the receivedspeech data). As will be referred to herein, a command generated basedon received speech data can be interpreted as a command being received.Text data received by command receiving component 220, on the otherhand, can be received via a virtual keyboard or other input method ofthe digital assistant device 210, or via a network from anothercomputing device paired to or in communication with the digitalassistant device 210. Received text data can already be in the form of acommand, and can be treated as such. In various embodiments, commandreceiving component 210 can be invoked manually by a user (e.g., via areceived input to begin listening for or receiving the speech ortext-based command), or can be in an always-listening oralways-receiving mode.

Based on a command being received by command receiving component 220,action matching component 230 can determine whether one or more actiondatasets stored on the digital assistant device 210 include a commandtemplate that corresponds to or substantially corresponds (e.g., atleast 90% similar) to the received command. In some aspects, acorresponding command template can be identified, and the action datasetof which the corresponding command template is stored in, can beselected for interpretation by action executing component 240. In someother aspects, a corresponding command template cannot be identified,and either the training component 250 can be invoked, or the receivedcommand can be communicated to the digital assistant server (depicted asserver 120 of FIG. 1 and digital assistant server 302 of FIG. 3) via theserver interfacing component 260.

The action executing component 240 can receive an action dataset thatcorresponds to or is determined relevant to the received command,selected by digital assistant device 210 from local storage or selectedby the digital assistant server from storage accessible thereto. In someaspects, if two or more action datasets are determined equally orclosely relevant to the received command, a list including thedetermined relevant action datasets can be provided for display bydigital assistant device 210, such that an input corresponding to one ofthe listed action datasets can indicate a selection of one desiredaction dataset. The action executing component 240 can, employing thereceived and/or selected action dataset, interpret included event data,which may include interpretable instructions, executable code, links,deep links, references to GUI elements, references to screencoordinates, field names, or other pieces of data that can correspond toone or more reproducible operations, tasks, or events associated withthe selected action dataset. When the event data is interpreted, theaction executing component 240 can reproduce the operations that wererecorded when the action dataset was initially generated by anycomputing device, such as digital assistant device 210. In some aspects,the event data can include time delays, URLs, deep links to applicationoperations, or any other reproducible operation that can be accessed,processed, emulated, or executed by the action executing component 240.In some aspects, events such as clicks or touch inputs, can bereproduced on the digital assistant device 210, based on the interpretedevent data stored in the invoked action dataset.

The training component 250 can facilitate the generation of an actiondataset, among other things. When the training component 250 is invoked,an indication, such as a GUI element, indicating that an actionrecording session has begun may be presented for display. A prompt toprovide the tasks or events required to perform the desired operationcan also be presented for display. In this regard, a user can begin byfirst launching an application for which the operation is associatedwith, and proceed with providing inputs to the application (i.e.,(performing the requisite tasks). The inputs can be recorded by thedigital assistant device 210, and the training component 250 can listenfor, parse, identify, and record a variety of attributes of the receivedinputs, such as long or short presses, time delays between inputs,references to GUI elements interacted with, field identifiers,application links activated based on received inputs (e.g., deep links),and the like. The recorded inputs and attributes (e.g., event data) canbe stored, sequentially, in an event sequence, and stored into a newaction dataset. The application launched is also identified, and anyapplication identifying information, such as operating system, operatingsystem version, application version, paid or free version status, andmore, can be determined from associated metadata and also stored intothe new action dataset. When the desired operation is completed (i.e.,all requisite tasks/events performed), a user can activate a trainingtermination button, which can be presented as a floating button or otherinput mechanism that is preferably positioned away from an activeportion of the display. Other termination methods are also contemplated,such as voice activated termination, or motion activated termination,without limitation.

The training component 250 can further request that the user provide aset of commands that correspond to the desired operation. A command canbe received via speech data and converted to a command by a speech totext engine, or received via text input as a command, among other ways.When the set of commands is provided and stored as commands, thetraining component 250 can further prompt the user to define anyrelevant parameters or variables in the commands, which can correspondto keywords or values that may change whenever the command is spoken. Inthis regard, a user may select one or more terms included in thereceived commands, and define them with a corresponding parameter typeselected from a list of custom, predefined, or determined parametertypes, as described herein. The training component 250 can then extractthe selected one or more terms from a command defined as parameter(s),replacing them with parameter field identifier(s) of a correspondingparameter type, and store the resulting data as a command template. Thetraining component 250 can then generate the action dataset from therecorded event sequence, the application identifying information, andthe one or more defined command templates. In some embodiments, thetraining component 250 can generate an action signature or unique hashbased on the generated action dataset or one or more portions of dataincluded therein. The action signature can be employed by the digitalassistant server to determine whether the action dataset or dataincluded therein is redundant, among other things.

The server interfacing component 260 can communicate received commands,generated action datasets, contextual information, or any other dataobtained by digital assistant device 210. Similarly, the serverinterfacing component 260 can receive code, updates, instructions,command templates, action datasets, or any other data from a digitalassistant server, such as digital assistant server 120 of FIG. 1. Inthis regard, the server interfacing component 260 can employ a network,such as network 130 of FIG. 1, to facilitate communicates to and from adigital assistant server.

The Digital Assistant Server

Looking now to FIG. 3, a block diagram 300 of an exemplary digitalassistant server 302 suitable for use in implementing embodiments of theinvention is shown. Generally, digital assistant server 302 (alsodepicted as server 120 of FIG. 1) is suitable for establishingconnections with digital assistant devices, such as digital assistantdevice 210 of FIG. 2; receiving generated action datasets from thedigital assistant devices; receiving commands from one or more digitalassistant devices; generating, maintaining, and employing languagemodels for interpreting commands received from the digital assistantdevices; maintaining or indexing received and stored action datasets;searching commands, command templates, and action datasets maintainedand/or stored in memory; determining relevance of searched commands,command templates, and action datasets; and distributing selected anddetermined relevant action datasets to the digital assistant devices.Digital assistant server 302 can include, among other things, anon-boarding component 305, a language model generating component 310, acommand receiving component 320, a language model searching component330, an action dataset ranking component 340, an action datasetselection component 350, and an action dataset distribution component360, among other things.

The on-boarding component 305 can receive action datasets generated byone or more digital assistant devices 210 in communication with digitalassistant server 302, and store them in a memory or database, such asdatabase 140 of FIG. 1. In some aspects, the on-boarding component caneither determine an action signature from a received action dataset orgenerate an action signature for a received action dataset, similar tohow a digital assistant device may, as described herein above. Beforestoring the received action dataset, the action signature can beemployed to generate a query that searches a maintained index of allaction datasets stored by the digital assistant server 302. In this way,the action signatures facilitate quick determination of uniqueness ofreceived action datasets, and reduces redundancy and processing load ofthe digital assistant server 302. The on-boarding component 305 can alsodetermine whether any portion of a received action dataset is differentthan action datasets already stored on or by the server (e.g., in adatabase), and extract such portions for merging into the existingcorresponding action datasets. Such portions may be identified incircumstances where only command templates are hashed in the actionsignature, or where each portion of the action dataset (e.g.,application identifying information, command template(s), eventsequence) is independently hashed either by training component 240 ofFIG. 2 or on-boarding component 310 of FIG. 3, to more easily identifychanges or differences between action datasets. By way of example, insome embodiments, a received action dataset can include separate hashesfor its application identifying information, event sequence, and commandtemplate(s). In this regard, the on-boarding component 305 can quicklyidentify that the received action dataset corresponds to a particularapplication and operation, or that the command template(s) are differentthan those stored in the stored action dataset by virtue of the commandtemplate hashes being different. Similarly, the independent hashsignatures for each portion of data included in an action dataset canfacilitate efficient determination of changes or differences between anycombination of data portions in a received action dataset and a storedaction dataset.

The digital assistant server 302 can also include a language modelgenerating component 310, which can be employed to efficiently generatean intelligent language model specific to a desired language space, suchas commands received from a digital assistant device. As will be furtherdescribed in accordance with FIGS. 5-12, the language model generatingcomponent can include components for generating, developing,maintaining, and/or employing a more sophisticated and relevant languagemodel to understand context and meaning of a received command, such asthose received from digital assistant devices, with minimal to notraining intervention. In some embodiments, language model generatingcomponent 310 can obtain (e.g., extract), from the action datasetsstored by digital assistant server 302, a plurality of command templatesor at least portions thereof (e.g., with or without parameter fields).By virtue of each stored action dataset including corresponding commandtemplates, each obtained command template can be mapped to one of thestored action datasets. For each obtained command template, languagemodel generating component 310 can generate an associated set ofsynthetic documents based on a determined relevant set of electronicdocuments (e.g., webpages, social media feeds, PDFs, Internet forumentries) retrieved from at least one remote data repository, such as awebsite or other electronic document database accessible to the digitalassistant server 302 via a network. Each synthetic document of thegenerated sets of synthetic documents can then be modified by languagemodel generating component 310 to include a tag or title thatcorresponds to the associated command template. In this way, eachcommand template mapped to a corresponding action dataset can also beassociated with a generated set of synthetic documents.

In some aspects, the language model generating component 310 cangenerate a plurality of document clusters based on the modifiedsynthetic documents, thereby providing a command-specific languagemodel. In some embodiments, the language model generating component 310can employ techniques for generating document clusters described in U.S.Pat. No. 7,747,593 (the '593 Patent), titled “Computer Aided DocumentRetrieval,” the entire contents of which is herein incorporated byreference. In some further aspects, language model generating component310 can employ advanced linguistic concepts of discourse communities andintertextuality to strategically link (e.g., merge) the generateddocument clusters and thereby generate more enriched and relevant setsof documents (i.e., semantic groups of documents) that can provide animproved and more efficient language model employable for purposes ofautomated command interpretation.

In some further aspects, language model generating component 310 cananalyze the generated semantic groups of documents to determinerepresentative phrases (e.g., topics or concepts) corresponding to eachgenerated semantic group. The language model generating component 310can then generate a mapping of the representative phrases to thegenerated semantic groups, thereby organizing the generated semanticgroups into more relative topics or general concepts that arecommunicated throughout the documents within each semantic group. Aswill be described, these representative phrases can be employed toquickly identify document clusters that are relevant to a receivedcommand, for purposes of employing the documents within the cluster tointerpret a received command.

Moving on, and as briefly described in accordance with FIG. 2, a digitalassistant device 210 can communicate, via a network, a received commandto the digital assistant server 302. In this regard, the digitalassistant server 302 can include a command receiving component 320 thatfacilitates establishing the remote connection with the digitalassistant device 210, and receiving the command from the digitalassistant device 210. As was described, a command can include atext-based (e.g. alphanumeric) string that can include terms, keywords,parameters, and the like, for purposes of initiating an action (e.g.,task or series of tasks) on the digital assistant device 210.

The digital assistant server 302 can also include a language modelsearching component 330 that can generate a query for purposes ofsearching a language model accessible to the digital assistant server302, such as one generated by language model generating component 310.More specifically, the language model searching component 330 can employthe received command to perform a semantic-based search on the one ormore generated synthetic documents of the language model generated bylanguage model generating component 310. As was noted herein, thereceived command can be defined (e.g., one that directly or partiallycorresponds to a command template included in one of the storedplurality of action datasets), or can be undefined (e.g., vague,unclear, difficult to interpret). Provided that the language modelgenerating component 310 has generated the language model based on thecommand templates included in the stored plurality of action datasets,the language model searching component 330 can generate a queryemploying the command, whether defined or undefined, and accuratelydetermine a meaning or intention of the received command to select anappropriate action dataset. Thus, the language model searching component330 can generate a query that includes at least a portion of thereceived command, and employ a search algorithm or search engine toidentify representative phrases of the various semantic groups thatcorrespond to the generated query. In this regard, the scope ofgenerated synthetic documents in the language model can be immediatelynarrowed based on a determined relevance to the received command. Thelanguage model searching component 330 can further traverse one or moresemantic groups of the language model having representative phrasesrelevant to the received command, to identify the generated syntheticdocuments that are determined relevant to the received command.

As each of the generated synthetic documents have been modified toinclude a tag or title that corresponds to one of the obtained pluralityof command templates, and by virtue of each command template beingmapped to one of the stored plurality of action datasets, any subset ofgenerated synthetic documents can correspond to a particular subset ofthe stored plurality of action datasets. Provided the foregoing, when aset of generated synthetic documents are determined relevant to thereceived command, a corresponding subset of the stored plurality ofaction datasets can also be identified.

In some embodiments, language model searching component 330 can employan action dataset ranking component 340 of the digital assistant server302. The action dataset ranking component 340 can include and access adefined set of rules, employable by the language model searchingcomponent 330, to assign scores to each search result (e.g., actiondataset), indicating its relative priority or relevance to a receivedcommand. These scores can be included in a “modifier” of a correspondingsearch result (e.g., action dataset), which enables the action datasetranking component 340 to rank the potential action dataset with respectto other candidate potential action datasets included in the pluralityof search results. In this regard, a ranking of relevant action datasetscan be determined, from most relevant to least relevant. In someaspects, contextual data obtained by and received from the digitalassistant device, from which the command was received, can be employedby the action dataset ranking component 340 to further modify scores ofvarious search results. In some aspects, a threshold number and/or athreshold score can be defined to determine a maximum number of relevantsearch results. It is also contemplated that some of the assigned scorescan be the same, indicating a determination of equal relevance to areceived command. Additional detail relating to the determination ofrelevance and assigning scores to action datasets can be found in U.S.patent application Ser. No. 16/047,782, titled “Ranking and BoostingRelevant Distributable Digital Assistant Operations,” which is assignedor under obligation of assignment to the same entity as thisapplication, the entire contents of each application being hereinincorporated by reference.

The digital assistant server 302 can also include an action datasetselection component 350 that selects one or more of the action datasets,included in the set of action datasets in the search result generated bylanguage model searching component 330 and/or ranked by action datasetranking component 340, having a highest assigned score (i.e., determinedmost relevant to the received command). As was noted herein, in someembodiments, multiple action datasets can be assigned a common highestranked score. In this regard, action dataset selection component 350 canselect one or more action datasets from the ranked set of search resultshaving a highest score.

The digital assistant server 302 can further include an action datasetdistribution component 360 to distribute or communicate, to a digitalassistant device 210 from which a command was received, a set of actiondatasets determined most relevant to the received command. The actiondataset distribution component 360 can retrieve the selected one or moredetermined most relevant action datasets from a memory or database, suchas database 140 of FIG. 1, establish a communications session with thedigital assistant device 210 from which the command was received, and/orcommunicate the selected one or more determined most relevant actiondatasets to the digital assistant device 210 as a response to thereceived command. In this way, the digital assistant device 210 fromwhich the command was received can interpret the communicated actiondataset, and execute the corresponding action or set of tasks definedthereby. As described in accordance with FIG. 2, if more than one actiondataset is selected and communicated to the digital assistant device210, a prompt can be provided for display by the digital assistantdevice 210 to select for interpretation one of the determined mostrelevant action datasets communicated thereto.

In various embodiments, action dataset distribution component 360 candistribute or communicate to a digital assistant device 210, a set ofaction datasets determined most relevant to a command received from thedigital assistant device 210, new action datasets stored by the digitalassistant server 302, determined updated action datasets, any portionand/or combination of the foregoing, and/or generated notificationscorresponding to any portion and/or combination of the foregoing, amongother things based on a variety of factors. For instance, thedistribution component 360 can include features that determine, amongother things, which applications are installed on a digital assistantdevice 210. Such features can enable the digital assistant server 302 todetermine which action datasets or portions thereof are relevant to thedigital assistant device 210, and should be distributed to the digitalassistant device 210. For instance, a digital assistant device 210profile (not shown) describing all applications currently installed orexecutable by a digital assistant device 210, can be maintained (e.g.,stored, updated) by the digital assistant server 302. The profile can beupdated periodically, manually, or dynamically by a server interfacingcomponent 260 of the digital assistant device 210 (e.g., whenever thedigital assistant is in communication with and sends a command to thedigital assistant server 302, or whenever an application is installed orupdated on the digital assistant device 210). The distribution component360 can distribute or communicate notifications, action datasets, orportions thereof, in a variety of ways, such as pushing, sending inresponse to received requests for updates, sending in response toestablished communications with a digital assistant device 210, or byautomatic wide scale (e.g., all digital assistant devices) or selectivescale (e.g., region, location, app type, app name, app version)distribution, among other things.

The Action Dataset

Turning now to FIG. 4, a block diagram 400 of an exemplary datastructure corresponding to an action dataset 410 in accordance with someof the described embodiments is illustrated. The depicted data structureis not intended to be limiting in any way, and any configuration of thedepicted data portions of information may be within the purview of thepresent disclosure. Further, additional data portions or less dataportions may be included in an action dataset 410 also remaining withinthe purview of the present disclosure.

In the depicted data structure 400, the action dataset 410 includesapplication identifying information 420, recorded event sequence data430, and command templates 440. In some embodiments, the action dataset410 further includes hash(es) 450, which can include a hash valuegenerated based on the entire action dataset 410, or hash valuesgenerated based on any portion of the aforementioned data portions 420,430, 440, among other things. The action dataset 410 can be generated bytraining component 250 of digital assistant device 210 of FIG. 2 and/orreceived from action dataset distribution component 360 of digitalassistant server 302 of FIG. 3.

The application identifying information 420 can include informationabout a particular application that is required for execution to performa particular operation for which the action dataset 410 was created.Exemplary pieces of application identifying information 420 are depictedin identifying information 425, which can include any one or more of anoperating system (OS) name for which the particular application isexecuted on, an OS version of the aforementioned OS, a defined nativelanguage of the aforementioned OS, a name of the particular application,a version of the particular application, and the like. It iscontemplated that the application identifying information 420 isrequired and checked (e.g., by the digital assistant server 302 of FIG.3), before an action dataset 410 is distributed to a digital assistantdevice (e.g., digital assistant device 210 of FIG. 2) and employed bythe digital assistant device to ensure that the action dataset 410 iscompatible with, or can be correctly interpreted by action executingcomponent 240 of FIG. 2, so that the corresponding and desired operationis performed by the digital assistant device 210.

The recorded event sequence data 430 can include any or all task orevent-related data that was obtained, received, or determined by thedigital assistant device (e.g., via training component 250 of FIG. 2)responsible for generating the action dataset 410. As noted herein, therecorded event sequence data can include timing attributes of receivedinputs (e.g., delays before or in between successive inputs, duration ofinputs, GUI elements interacted with, relative positions of GUIelements, labels or metadata of GUI elements, scroll inputs anddistances, links or URLs accessed activated, detected activation ofapplication deep links activated in response to received inputs, andmore). In some instances, the recorded event sequence data 430 mayinclude conditions that require actual user intervention beforesubsequent events or tasks are resumed. For instance, secured loginscreens may require that a user input username and password informationbefore an application is executed. In this regard, the recorded eventsequence data 430 may include a condition corresponding to when userauthentication has occurred, and instructions (e.g., interpretable byaction executing component 240) to proceed with the tasks or events inthe recorded event sequence data 430 based upon an occurrence of thecondition. In various implementations, it is contemplated that theaction executing component 240 of FIG. 2 can parse metadata, GUIelements, or other information from an executing application todetermine when certain events occur or conditions are met. In thisregard, additional conditions may be included in the recorded eventsequence data 430 that require prior events or tasks to be completed, orcertain GUI elements be displayed or interacted with, or any otherconditions to be met, before subsequent events or tasks are performed bythe action executing component 240 of FIG. 2.

Generating the Language Model

Turning now to FIG. 5, a block diagram 500 is provided, depicting anexemplary language model generating component 510 in accordance withsome of the described embodiments. The language model generatingcomponent 510, also described in accordance with language modelgenerating component 310 of FIG. 3, can be employed to efficientlygenerate an intelligent language model specific to a desired languagespace, such as commands received from a digital assistant device. Thelanguage model generating component 510 can include a synthetic documentgenerating component 520 for generating and modifying a corpus ofelectronic documents that is relevant to the command space, an indexingcomponent 530 for organizing the corpus of electronic documents andgenerating an index thereof, for more efficiently searching thedocuments based on received commands, and a scoring and rankingcomponent 540 that can be employed by the indexing component 530, amongother things, to facilitate the organization of the corpus based onlinguistic principles of intertextuality, among other things.

As was described in accordance with language model generating component310 of FIG. 3, a digital assistant server, such as digital assistantserver 302, can have a plurality of action datasets stored thereon. Eachof the stored action datasets can include a corresponding set of commandtemplates that can be matched to or determined relevant to a receivedcommand. The digital assistant server can receive a command from adigital assistant device, such as digital assistant device 210 of FIG.2, interpret the received command to determine whether the receivedcommand matches or is relevant to one of the command templatescorresponding to one of the stored action datasets, and distribute thestored action dataset determined to match or be most relevant to thereceived command.

As one of ordinary skill may appreciate, the digital assistant server302 must have a corpus of electronic documents that it can analyze tofacilitate various underlying natural language processing techniques. Inorder to generate a language model that is based on terms or phrasesthat are more relevant to the command space, or in other words tofacilitate a better understanding of commands received by a digitalassistant device to invoke a corresponding set of tasks via one or moreinstalled applications, it would be beneficial to build the languagemodel with a corpus of electronic documents that have terms and phrasesrelevant to the command space. As such, the synthetic documentgenerating component 520 can obtain (e.g., extract, retrieve) aplurality of command templates or at least portions thereof (e.g., withor without parameter fields) based on the action datasets stored bydigital assistant server 302. For each of the command templates, thesynthetic document generating component 520 can generate a queryincluding at least a portion of the command template, and submit thequery to a search engine or remote data repository to retrieve acorresponding search result. The search result for the query can includea plurality of electronic documents, such as content from webpages,social media feeds, PDFs, Internet forum entries, and the like. As theelectronic documents were retrieved based on one of the commandtemplates, it is contemplated that the electronic documents weredetermined at least partially relevant to the command template or termsincluded therein.

The synthetic document generating component 520 can extract, from atleast a portion of the retrieved search results, one or more portions(e.g., sentences) that are determined relevant to the generated query(e.g., the command template). By way of non-limiting example, thesynthetic document generating component 520 can employ a search engineto identify excerpts (e.g., 20-30) of at least a portion of theelectronic documents included in the search result determined randomly,or including terms or portions of the command template or determinedrelevant thereto, and extract the identified portions. The extractedexcerpts can be employed by the synthetic document generating component520 to generate a plurality of synthetic documents corresponding to thecommand template, each generated synthetic document including anyportion of the extracted excerpts. In some aspects, a defined number ofextracted excerpts can be included in a single synthetic documentgenerated for a corresponding command template. In some further aspects,a defined number (e.g., 100) of synthetic documents can be generated fora corresponding command template.

With each command template having a corresponding plurality of syntheticdocuments generated by the synthetic document generating component 520,a corpus of electronic documents comprising all generated syntheticdocuments is generated. In this way, the corpus of electronic documentsspecific to the command space is automatically generated, each of theelectronic documents within the generated corpus being relevant to atleast a portion of the command space. The synthetic document generatingcomponent 520 can further modify each synthetic document generated for acorresponding command template by adding a title or tag to the generatedsynthetic document. The title or tag can include or reference thecommand template, so that the generated synthetic document can beidentified based on the command template to which it corresponds.

The indexing component 530 can be employed by the language modelgenerating component 510 to analyze the generated corpus of electronicdocuments (e.g., the modified synthetic documents), organize theelectronic documents into contextually-relevant clusters, and generatesemantic groups from which topics or higher level concepts can beextracted and indexed to facilitate a more efficient search of thegenerated corpus. In this way, employing embodiments described herein, alanguage model generated and indexed by language model generatingcomponent 510 can be employed to determine a command template mostrelevant to a received command, and thereby a corresponding actiondataset based on the determined most relevant command template beingmapped to (and included in) the corresponding action dataset.

The indexing component 530 can include a clustering component 532 thatcan organize the generated corpus of electronic documents (e.g., themodified synthetic documents) by employing a technique for clusteringthe electronic documents into narrow contexts automatically identifiedfrom the corpus. In accordance with various embodiments, the clusteringcomponent 532 can analyze documents, words, or phrases, and generateassociations there between and/or generate lists of documents, words, orphrases, which can be stored in a cache or a memory to facilitate thevarious embodiments described herein. At a high level, each cluster(e.g., subset) of electronic documents generated based on documentsselected from the corpus of electronic documents can represent adiscourse community, or in other words, forms of communication orlanguage to communicate a message that is contextually similar inmeaning. The clustering method performed by clustering component 532 cancomprise steps such as: calculating, respective to each document, aprobability distribution indicative of the frequency of occurrence ofeach term in the document; comparing the respective probabilitydistribution of each document with each probability distributionselected as a cluster attractor; and assigning each document to at leastone cluster depending on the similarity between the compared probabilitydistributions. In some embodiments, entropy can be advantageouslyutilized to identify these narrow contexts. This indexing process cangenerate relatively small clusters of electronic documents to be formedfrom the corpus, enabling more focused retrieval (e.g., for purposes ofsearch). In various embodiments described herein, the language modelgenerating component 510 can include an analyzing component, such as ascoring and ranking component 540, for calculating and/or ranking values(e.g., probability distributions, entropy scores, Jensen-Shannondivergence scores, weights) based on one or more input texts (e.g., anyportion of an electronic document) of which can be automatically parsedand selected from one or more documents by any component of the indexingcomponent 530, such as the clustering component 532. It is contemplatedthat any of the components of the language model generating component510 can employ the scoring and ranking component 540 to determine anoutput based on one or more inputs provided thereto. For instance, eachword can be selected from each document and be assigned a calculatedimportance score based on a determined entropy of the word's calculatedprobability distribution multiplied by the log of a determined frequencyof the selected word within the entire document corpus (i.e.,1/entropy*log(document_frequency)). Once an importance score for eachword is calculated, the words can be ranked based on their calculatedimportance scores. The ranked listing of words can then be split into aplurality of segments. For instance, employing a concept of power law,the scoring and ranking component 540 can separate the list into apredefined or maximum number (e.g., 10) of segments, whereby eachsegment is half the size of its previous segment. By way of anon-limiting example, for a list of 800 ranked words, the list can bebroken into groups sized as 400, 200, 100, 50, 25, 12, 6, 3, and 1word(s), respectively. Once the list is separated into segments, eachsegment is assigned a ranking score or value, the largest group having ahighest ranking score (e.g., 10), and the smallest group having a lowestranking score (e.g., 1). In some aspects, words included in groupsranked higher than a predefined rank (e.g., 6) can be ignored, whilewords included in groups ranked equal to or less than the predefinedrank can be considered for further evaluation. Utilizing this technique,the clustering component 532 can remove from consideration words thatare too specific, while identifying “context words” having assignedranking scores.

In some further embodiments, the clustering component 532 can furtheremploy a clustering technique for organizing and indexing the documentswithin each cluster by: assigning a respective weight to each document,the value of the weight depending on the similarity between theprobability distribution of the document and the probabilitydistribution of the cluster attractor; comparing the respectiveprobability distribution of each document in the cluster with theprobability distribution of each other document in the cluster;assigning a respective weight to each pair of compared documents, thevalue of the weight depending on the similarity between the comparedrespective probability distributions of each document of the pair;calculating a minimum spanning tree for the cluster based on therespective calculated weights, whereby the minimum spanning tree candefine logical relationships between documents of a cluster based on theweights there between. In various embodiments, the language modelgenerating component 310 can employ techniques for generating theaforementioned document clusters and corresponding minimum spanningtrees as described in U.S. Pat. No. 7,747,593 (the '593 Patent), titled“Computer Aided Document Retrieval,” the entire contents of which isherein incorporated by reference.

In some further embodiments, employing linguistic principles ofintertextuality, representative phrases corresponding to documentclusters generated for indexing electronic documents can be determined.In other words, terms or phrases that are representative of a contextcommunicated throughout the documents included in each document clustercan be identified. As noted above, the language model generatingcomponent 310 can generate document clusters having documents thereinthat can be logically linked to one another via a minimum spanning tree,thereby defining “neighboring” documents. In some aspects, theclustering component 532 can, for each document within a cluster (i.e.,a seed document), compare the seed document relative to each otherneighboring document within the generated document cluster to calculatea distance (e.g., Jensen-Shannon divergence score) (P1) between the seeddocument and each other neighboring document. If the calculated distanceis equal to or less than a threshold value (e.g., 0.75), then theneighboring document can be defined as being within the seed document's“section.” Moreover, if the neighboring document is defined within theseed document's section, another distance (P2) can be calculated betweenthe neighboring document and each extended neighboring document of theneighboring document (e.g., the neighbor of the neighboring document).In this regard, a distance between the seed document and the extendedneighboring document can then be calculated based on both of thecalculated distances (P1 and P2). In some aspects, this distance can bedetermined based on the formula: 1-(1-P1)(1-P2). Similarly, if thecalculated distance between the seed document and the extendedneighboring document is equal to or less than a threshold value (e.g.,0.75), then the extended neighboring document can also be defined asbeing within the seed document's “section.” In some aspects, thisprocess can continue between the seed document, neighboring documents,and/or further extended neighboring documents, until a calculateddistance between the seed document, each neighboring document, and eachfurther extended neighboring documents is determined to be greater thanthe predefined threshold.

Utilizing the foregoing, document “sections” within a generated documentcluster, each of which includes electronic documents contextuallyrelevant to a seed document, can be identified based on the calculateddistances between the seed document, neighboring document(s), and/orextended neighboring document(s), compared to a threshold. It iscontemplated that some documents within a cluster may be included in oneor more defined document sections associated with the document cluster.

For purposes of further explanation, each document pair between the seeddocument, neighboring, extended and/or further extended neighboringdocuments and another neighboring document within the seed documentsection can be referred to as a seed document pair, whereby the otherdocument can be referenced herein as a seed pair document. In somefurther embodiments, the clustering component 532 can, for each seeddocument section (e.g., relative to a seed document), determine words orphrases that are representative of the documents included within theseed document section. For each seed document pair, the clusteringcomponent 532 can determine representative or “important” words orphrases by taking into account a determined entropy of a calculatedprobability distribution of each determined context word in the seeddocument, neighboring, extended and/or further extended neighboringdocuments relative to the seed pair document, and also a determinedfrequency of its occurrence within documents of the entire documentcorpus.

In some aspects, each context word of a seed document can be selectedand analyzed to determine its relative weight. In some furtherembodiments, the clustering component 532 can calculate a weight foreach word that is being considered for further evaluation, such as thecontext words included in groups ranked equal to or less than thepredefined rank (e.g., 6). For each context word ranked equal to or lessthan the predefined rank, the weight is calculated based on a calculateddistance (i.e., 1−distance) multiplied by its assigned ranking score(i.e., ranking score*(1−distance)). Alternatively, for context wordsranked equal to or less than the predefined rank and included in a seeddocument that is the only document within a section, the weight iscalculated based on a calculated probability that the context word willoccur within the seed document multiplied by its assigned ranking score(i.e., ranking score*calculated probability). The clustering component532 can once again rank (e.g., utilizing scoring and ranking component540) and select a predefined number (e.g., 2) of the highest weightedwords (e.g., from all document pairs within the section) as the wordsthat are most representative of, or in other words most important to,the seed document section. In this regard, the clustering component 532can determine, for a document cluster, a plurality of document sectionsthat are each associated with a set of highest weighted words. In someaspects, the set of highest weighted words from each document sectioncan include a predefined number (e.g., 2) of highest weighted words. Inthis way, the clustering component 532 can generate a document clusterhaving a plurality of document sections, each document section beingassociated with a set of most important (e.g., highest weighted) words,also referenced herein as “seed terms.”

In some further embodiments, the clustering component 532 can determinephrases (e.g., one or more consecutive words including a seed term) thatare most representative or relevant to a document cluster based on theset(s) of seed terms determined for the document sections within thecluster. The clustering component 532 can select each seed term andparse all phrases from documents within the document cluster thatinclude the seed term. In some aspects, a maximum number of words in aphrase can be defined, such that each parsed phrase cannot exceed apredefined number of words (e.g., 4 words). In other words, each seedterm can be evaluated as a single term phrase, and other multi-wordphrases can also be evaluated, each multi-word phrase having up to thepredefined number of words. The clustering component 532 can firstdetermine the phrases that exist within the document cluster based onthe seed terms determined for the document sections within the cluster.In other words, each seed term is selected and each document within thedocument cluster is searched to identify the various phrases includingthe seed term. The clustering component 532 can calculate a weight foreach determined phrase associated with a seed term, including the singleterm phrase (i.e., seed term) and determined multi-word phrases, bycalculating a frequency that the seed term occurs within the set(s) ofseed terms determined for the document sections, multiplied by afrequency that the determined phrase occurs within the documents of thecluster. The clustering component 532 can then identify which phrase(s)associated with a seed term should be selected as representative of adocument section by comparing the calculated weights for the phrasesbased on the number of terms included within the phrase, and determiningits significance to the cluster. By way of a non-limiting example,assume that a seed word and weight is “Ireland”=870, and the determinedphrases and respective weights include “Northern Ireland”=348, “IrelandPoet”=12, and “Northern Ireland Poet”=12. The weight calculated for aphrase (e.g., “Northern Ireland Poet”) is compared to the weightscalculated for the other phrase(s) (e.g., “Northern Ireland” and“Ireland Poet”) included within the phrase. If the weight for the phraseis greater than or equal to the other phrase (e.g., “Irelandpoet”≤“Northern Ireland Poet”) and the difference in weights (e.g.,|weight(“Ireland poet”)−weight(“Northern Ireland poet”)|) is less thanor equal to half the weight of the other phrase (0.5*weight(“Irelandpoet”)), then the other phrase is considered a bad phrase and is notselected as a representative phrase. In this example, “Ireland Poet” isconsidered a bad phrase by clustering component 532, while “Ireland,”“Northern Ireland,” and “Northern Ireland Poet,” are selected asrepresentative phrases. In this way, each document section in a documentcluster can now be associated with a set of representative phrases, andthe document cluster can be associated with a plurality ofrepresentative phrases including the associated sets of representativephrases. As referenced herein, the plurality of representative phrasesassociated with a document cluster can be referred to as “clusterphrases.”

In some embodiments, language model generating component 510 can employadvanced linguistic concepts of discourse communities andintertextuality to strategically link (e.g., merge) the generateddocument clusters and by doing so, determine topics and subtopics thatcan be employed to more efficiently index and more efficiently searchrelevant documents within the document corpus. More specifically, oncethe clustering component 532 has determined a set of cluster phrases foreach document cluster, cluster merging component 534 can further analyzethe generated document clusters and corresponding cluster phrases tostrategically group, link, or merge the generated document clusters andassociated cluster phrases based on identified overlapping portions ofthe cluster phrases. For instance, with brief reference to therelational diagram 600 of FIG. 6, each document cluster 610, 620, 630generated by clustering component 532 is associated with a correspondingdetermined set of cluster phrases. The cluster merging component 534 cancompare the cluster phrases associated with each generated documentcluster and determine whether at least a threshold number (e.g., 15) ofthe corresponding cluster phrases overlap or are in common with oneanother (e.g., intersecting cluster phrases 640, 650, 660). If thecluster merging component 534 determines that the cluster phrasesbetween a pair of generated document clusters has at least the thresholdnumber of intersecting cluster phrases 640, 650, the cluster mergingcomponent 534 can generate a logical link between the document clusters(e.g., cluster 610 to cluster 620, cluster 610 to cluster 630). Forother pairs (e.g., cluster 620 to cluster 630) determined having lessthan the threshold number of intersecting cluster phrases (e.g.,intersecting cluster phrases 660), a logical link is not generated. Thegeneration of logical links or “merging” of various document clusters,by cluster merging component 534, can identify a broader hierarchicallevel of cluster phrases that are relevant to groups of one or moredocument clusters (hereinafter referred to as “cluster groups”) andthereby the electronic documents included therein. In other words,cluster phrases that are associated with a set of document clusters thatare linked (i.e., a set of cluster phrases corresponding to mergeddocument clusters) can provide higher level search terms for improvingefficiency when searching the electronic document corpus based on areceived input, such as a command.

In some further embodiments, the indexing component 530 can include asemantic grouping component 536 that analyzes merged document clusters(“merged clusters”) to identify groups of merged clusters that aresimilar, or in other words having contextually similar documentstherein. A merged cluster can include one or more clusters merged bycluster merging component 534, and corresponding sets of clusterphrases. As referenced herein, a merged cluster can include one or moreclusters, and is not necessarily limited to a plurality of clusters. Insome aspects, a merged cluster can correspond to a newly generatedcluster that comprises two or more clusters. With reference to therelational diagram 700 of FIG. 7, for each merged cluster, referencedherein as a “seed cluster” 710, the semantic grouping component 536compares the associated set of cluster phrases 712 to other sets ofcluster phrases 722, 732, 742, 752 associated with other merged clusters720, 730, 740, 750. In some aspects, the semantic grouping component 536can select a threshold quantity (e.g., 4) of other merged clusters 720,730, 740, 750 determined to have in common at least a threshold number(e.g., 10) of cluster phrases (e.g., intersecting cluster phrases 715)with the seed cluster 710. In this regard, the semantic groupingcomponent 536 can generate a link (e.g., an association or logical link)710, 720 between the merged clusters (e.g., cluster 710 to cluster 720)based on the determined threshold number of common cluster phrases(e.g., intersecting cluster phrases 715) there between to generate asemantic group of electronic documents.

In some further aspects, the semantic grouping component 536 candetermine that the threshold quantity of the other merged clusters 730,740, 750, compared to the seed cluster 710, does not meet the thresholdnumber of cluster phrases (e.g., intersecting phrases 725, 735, 745) incommon with the seed cluster 710. In this regard, the semantic groupingcomponent 536 can determine one or more stem terms (i.e., each word)from each cluster phrase associated with the seed cluster 710. Forinstance, the cluster phrase “Northern Ireland” includes stem terms“Northern” and “Ireland.” The semantic grouping component 536 can thencalculate a frequency of each stem term with respect to the phrasesassociated with the cluster, meaning that a frequency is determined thatthe stem term occurs or is included within the cluster phrases 732, 742,752 associated with the seed cluster 710. Further, the semantic groupingcomponent 536 can normalize, or in other words calculate a probabilitydistribution (a “cluster description profile”), for each stem termwithin the cluster phrases associated with the seed cluster based on thefrequenc(ies) determined for the stem terms within the cluster phrase.The semantic grouping component 536 can thus associate the clusterdescription profile with the seed cluster as a proxy attractor.

Further, the semantic grouping component 536 can calculate a distance(e.g., Jenson-Shannon divergence score) based on the proxy attractors ofthe seed cluster relative to the cluster attractors associated with atmost a threshold quantity (e.g., 4) of other merged clusters 730, 740,750. To this end, the semantic grouping component 536 can select theother merged clusters determined to have a lowest calculated distanceuntil the threshold quantity (e.g., 4) of other merged clusters is met.The semantic grouping component 536 can thus generate a group of mergedclusters (“cluster group”) that includes the seed cluster 710 up to thethreshold number of other merged clusters that are determined similar tothe seed cluster 710.

Referencing back to FIG. 5 and described with respect to the relationaldiagram 800 of FIG. 8, provided that a cluster group including acorresponding set of merged clusters is generated by semantic groupingcomponent 536, the indexing component 530 can employ topic extractioncomponent 538 to further organize the corpus into identified topics andconcepts. Among other things, topic extraction component 538 candetermine the top two most important or relevant cluster phrases,referenced herein as “cluster tags,” for each merged cluster (i.e., aseed cluster) in the cluster group. The topic extraction component 538can, for each cluster phrase of a seed cluster, calculate a weight forthe cluster phrase utilizing the below formula:

${{tag} = {\underset{{phrase}:p}{\arg \mspace{14mu} \max}{\sum\limits_{\underset{{cluster}:c}{similar}}{\log ( {2 + {{phrase\_ frequency}( {p,c} )}} )}}}},$

where phrase_frequency corresponds to a number of documents within theseed cluster containing the cluster phrase. The topic extractioncomponent 538 can rank the cluster phrases, such that the clusterphrases determined to have the highest weight are selected as the“cluster tags” of the merged cluster. In some aspects, a predefined ormaximum number of cluster tags can be selected for each merged cluster.In some embodiments, the topic extraction component 538 can tag orassociate a merged cluster with its selected cluster tags. This processcan be repeated for each merged cluster in the cluster group.

With reference to FIGS. 9-13, the topic extraction component 538 canrank the cluster tags according to popularity of the tags amongst all ofmerged document clusters of the corpus. In FIG. 9, each of therectangles represent a cluster or merged cluster, where some are linkedto or merged with at least one other merged cluster because they are inthe same cluster group. The letters depicted in FIG. 9, such as A, B, C,D, or E, each represent one of the cluster tags associated with a mergedcluster in a cluster group. Provided the foregoing, topic extractioncomponent 538 can rank the cluster tags within the entire documentcorpus based on a determined popularity (e.g., number of occurrences)amongst the tags associated with the various merged clusters in thedocument corpus.

Looking now at the relational diagram 1000 of FIG. 10, starting at adetermined highest ranked or most popular cluster tag represented byletter “A” 1001, the topic extraction component 538 can identify theclusters that incorporate a determined highest ranked or most frequentlyoccurring cluster tag (e.g., “A” 1001) and that is directly linked ormerged to another one of the clusters (e.g., merged clusters 1010, 1020,1030, 1040, 1050, 1060, 1070) also having the determined highest rankedcluster tag. Looking now at the relational diagram 1100 of FIG. 11, thetopic extraction component 538 can identify other merged clusters (e.g.,merged cluster 1080) that is associated with the determined highestranked cluster tag “A” 1001, and with the identified merged clusters inthe same cluster group and incorporating the highest ranked tag,generate a topic-based group of merged clusters. The topic-based groupcan be associated with a topic and one or more sub-topics. For example,topic-based group 1110 includes merged clusters 1010, 1020, 1030, 1040,which are linked and also includes highest ranked cluster tag “A” 1001.The topic-based group 1110 further includes merged cluster 1080, becauseit incorporates the highest ranked cluster tag “A” 1001. The topic-basedgroup 1110 is generated and is associated with a defined topic “A” 1001,and defined sub-topics “B” 1002, “C” 1004, and “E” 1005 because they areeach cluster tags paired with the highest-ranked cluster tag “A” 1001.The topic extraction component 538 can identify common topics, such astopic “A” having different sub-topics, as defined by topics andsub-topics 1120, 1320, based on a determination that the merged clustersare associated with different cluster groups (e.g., are not linked),among other things.

Looking now at the relational diagram 1200 of FIG. 12, the topicextraction component 538 can progress on to the next highest rankedcluster tag “B” 1002 after completing the generation of the topic-basedgroups 1110, 1130 associated with determined highest ranked cluster tag“A” 1001. For instance, merged clusters 1090, 1100 can be identifiedbased on including cluster tag “B” 1002 and being directly linked 1210,as similarly performed with the identification of merged clusters intopic-based groups 1110, 1130. Similarly, merged clusters 1110, 1120 canbe identified based on a determination that they are tagged with clustertag “B” 1002 and being directly linked 1220. The topic extractioncomponent 538 can exclude all merged clusters included in topic-basedgroups 1110 and 1130 because they were already included in a topic-basedgroup.

Looking now at the relational diagram 1300 of FIG. 13, the topicextraction component 538 can, similar to the generation of topic-basedgroups 1110 and 1130, generate one or more topic-based groups 1310 ofsubsequently ranked cluster tag “B” 1002. Similar to explained above,the topic-based group 1310 is generated and is associated with a definedtopic “B” 1002, and defined sub-topics “C” 1004, “D” 1003, and “E” 1005because they are each cluster tags paired with the next highest-rankedcluster tag “B” 1320. The topic extraction component 538 can identifycommon topics, such as topic “B” having different sub-topics, as definedby 1320, based on a determination that the merged clusters areassociated with the next highest-ranked cluster, among other things.This process can be repeated until generation of topic-based groups isexhausted, or in other words, each merged cluster is associated with orincluded in a topic-based group having defined topics and/or sub-topics.The indexing component 530 can employ the topic-based groups, each beingassociated with a defined topic and/or sub-topics, to generate the indexof documents within the document corpus. In this way, the index can beemployed to efficiently search the electronic document corpus based ontopics and/or sub-topics.

Employing various embodiments of the present disclosure, a digitalassistant server, such as digital assistant server 300 of FIG. 3, cangenerate a language model having a searchable index that generates andorganizes document clusters defined with topics and/or associatedsub-topics determined from the content included therein, as depicted inFIG. 14. The relational diagram 1400 of FIG. 14 depicts exemplary topicsand sub-topics that can be determined from an electronic document corpusbased on the various techniques described herein. The determined topicsand sub-topics can each be mapped to various document clusters of thedocument corpus, and defined in an index so that based on a receivedinput, such as a command received from a digital assistant device 200 ofFIG. 2, the index can be employed to quickly identifycontextually-relevant documents from the corpus based on the receivedinput.

Computer-Implemented Methods, Processing Flows, and Systems

Looking now to FIG. 15, a flow diagram 1500 is provided to depict anexemplary method for interpreting and understanding commands, such asone received by a digital assistant device, in order to select a mostrelevant or appropriate response in accordance with some embodiments ofthe present disclosure. As shown at block 1510, a computing device, suchas digital assistant server 302 of FIG. 3, can obtain a plurality ofcommand templates that are each mapped to one of a plurality of actiondatasets, such as an action dataset 410 of FIG. 4. The action datasetscan be stored in a database coupled to the computing device, such asdatabase 140 of FIG. 1. In some aspects, the computing device canmaintain a table, mapping, or index of the stored action datasets andcorresponding command templates, among other things.

The computing device can generate, at block 1520, for each commandtemplate of the obtained plurality of command templates, an associatedset of synthetic electronic documents. For instance, the computingdevice can include a language model generating component, such aslanguage model generating component 510 of FIG. 5, to generate a corpusof electronic documents that are relevant to an application-specificcommand space that is defined based on the obtained plurality of commandtemplates. In various embodiments, the computing device can generate,for each command template, a query (e.g. including terms of orcorresponding to the command template) that can be submitted to a searchengine to retrieve, among other things, a variety of electronicdocuments that are determined relevant to the query. The computingdevice can extract intentionally or randomly, as described herein, oneor more excerpts from the retrieved variety of electronic documents togenerate a plurality of synthetic electronic documents that areassociated with the command template.

At block 1530, the computing device can modify, for each commandtemplate of the obtained plurality of command templates, thecorresponding plurality of generated synthetic electronic documents sothat each is tagged or titled with the terms or keywords of the commandtemplate. In this regard, the computing device can save the modifiedsynthetic electronic documents so that each is tagged or titled with itscorresponding command template. The modified synthetic documents storedfor all of the obtained command templates can be employed as a corpus ofelectronic documents for purposes of generating a language model that isapplicable to a digital assistant device in accordance with embodimentsdescribed herein.

At block 1540, the computing device can include an indexing component,such as indexing component 530, to analyze the corpus of electronicdocuments and generate an index based on a generated plurality ofdocument clusters from the corpus. The plurality of document clusterscan be analyzed, mapped, and organized based on comparisons, determinedsimilarities, calculated entropies, generated associations, and/orprobability distributions, among other things.

At block 1550, the computing device can receive a command, such as atext-based command received from a digital assistant device 210 of FIG.2. The computing device can identify, from the generated plurality ofdocument clusters, one or more of the clusters that are relevant to thereceived command. In various embodiments, the generated plurality ofdocument clusters can be indexed to more efficiently search relevantportions of the electronic documents of the corpus based on a receivedinput, such as a received command.

At block 1560, the computing device can select an action dataset of theplurality of stored action datasets, whereby the selected action datasetis mapped to a command template that is referenced (e.g., tagged,titled) in a determined most relevant one of the electronic documents ofthe determined relevant cluster. In various embodiments, the computingdevice can employ various components, as described in accordance withFIG. 3, to facilitate the searching, ranking, and selection of an actiondataset that is determined most relevant to a received command. Thecomputing device can employ, for instance, a language model searchingcomponent, such as a language model searching component 330 of FIG. 3,for searching the various electronic documents of the corpus, an actiondataset ranking component 340 for ranking and/or boosting potentiallyrelevant action datasets based on a variety of factors, such as obtainedcontextual data (e.g., received from the digital assistant device),among other things.

Looking now to FIG. 16, a flow diagram 1600 is provided to depict anexemplary method for interpreting and understanding commands, such asone received by a digital assistant device, in order to select a mostrelevant or appropriate response (i.e., action to perform) in accordancewith some embodiments of the present disclosure. As described herein, acomputing device, such as digital assistant server 302 of FIG. 3, canobtain a plurality of command templates that are each mapped to one of aplurality of action datasets, such as an action dataset 410 of FIG. 4.The action datasets can be stored in a database coupled to the computingdevice, such as database 140 of FIG. 1. In some aspects, the computingdevice can generate and maintain a table, mapping, or index of thestored action datasets and corresponding command templates, among otherthings.

The computing device can generate, for each command template of theobtained plurality of command templates, an associated set of syntheticelectronic documents. For instance, the computing device can include alanguage model generating component, such as language model generatingcomponent 510 of FIG. 5, to generate a corpus of electronic documentsthat are relevant to an application-specific command space that isdefined based on the obtained plurality of command templates. In variousembodiments, the computing device can generate, for each commandtemplate, a query (e.g. including terms of or corresponding to thecommand template) that can be submitted to a search engine to retrieve,among other things, a variety of electronic documents that aredetermined relevant to the query. The computing device can extractintentionally or randomly, as described herein, one or more excerptsfrom the retrieved variety of electronic documents to generate aplurality of synthetic electronic documents that are associated with thecommand template.

The computing device can modify, for each command template of theobtained plurality of command templates, the corresponding plurality ofgenerated synthetic electronic documents so that each is tagged ortitled with the terms or keywords of the command template. In thisregard, the computing device can save the modified synthetic electronicdocuments so that each is tagged or titled with its correspondingcommand template. The modified synthetic documents stored for all of theobtained command templates can be employed as a corpus of electronicdocuments for purposes of generating a language model that is applicableto a digital assistant device in accordance with embodiments describedherein. Each word can be selected from each document and can be assigneda calculated importance score based on a determined entropy of theword's calculated probability distribution multiplied by the log of adetermined frequency of the selected word within the entire documentcorpus (i.e., 1/entropy* log(document_frequency)). Once an importancescore for each word is calculated, the words can be ranked based ontheir calculated importance scores. The ranked listing of words can thenbe split into a plurality of segments, such that each document within acorresponding one of the segments is assigned a ranking score or value.In some aspects, words included in groups ranked higher than apredefined rank (e.g., 6) can be ignored, while words included in groupsranked equal to or less than the predefined rank can be considered forfurther evaluation. Utilizing this technique, the clustering component532 can remove from consideration words that are too specific, whileidentifying “context words” having assigned ranking scores.

At block 1610, the computing device can analyze the corpus of electronicdocuments and generate a plurality of document clusters therefrom, asdescribed in FIG. 5. In various embodiments, the computing device candetermine cluster attractors for each document in the plurality ofdocuments, each document comprising at least one term, the methodcomprising: calculating, in respect of each term, a probabilitydistribution indicative of the frequency of occurrence of the, or each,other term that co-occurs with said term in at least one of saiddocuments; calculating, in respect of each term, the entropy of therespective probability distribution; selecting at least one of saidprobability distributions as a cluster attractor depending on therespective entropy value. In some aspects, with respect to eachdocument, a probability distribution is calculated, indicative of thefrequency of occurrence of each term in the document. The computingdevice can compare the respective probability distribution of eachdocument with each probability distribution selected as a clusterattractor; and assign each document to at least one cluster depending onthe similarity between the compared probability distributions. In thisregard, the computing device generates a plurality of document clusters,whereby relationships between the neighboring documents are defined by aspanning tree in accordance with entropy scores calculated between thedocuments, among other things.

At block 1620, a clustering component, such as clustering component 532of FIG. 5, can, for each document within a cluster (i.e., a seeddocument), compare the seed document relative to each other neighboringdocument within the generated document cluster to calculate a distance(e.g., Jensen-Shannon divergence score) (P1) between the seed documentand each other neighboring document and determine whether a neighboringdocument should be included in a document section associated with theseed document. If the calculated distance is equal to or less than athreshold value (e.g., 0.75), then the neighboring document can bedefined as being within the seed document's “section.” Moreover, if theneighboring document is defined within the seed document's section,another distance (P2) can be calculated between the neighboring documentand each extended neighboring document of the neighboring document(e.g., the neighbor of the neighboring document). In this regard, adistance between the seed document and the extended neighboring documentcan then be calculated based on both of the calculated distances (P1 andP2). In some aspects, this distance can be determined based on theformula: 1-(1-P1)(1-P2). Similarly, if the calculated distance betweenthe seed document and the extended neighboring document is equal to orless than a threshold value (e.g., 0.75), then the extended neighboringdocument can also be defined as being within the seed document's“section.” In some aspects, this process can continue between the seeddocument, neighboring document(s), and/or further extended neighboringdocuments, until a calculated distance between the seed document, eachneighboring document(s), and/or each further extended neighboringdocuments is determined to be greater than the predefined threshold.Utilizing the foregoing, document “sections” within a generated documentcluster, each of which includes electronic documents contextuallyrelevant to a seed document, can be identified based on the calculateddistances compared to a threshold. It is contemplated that somedocuments within a cluster may be included in one or more defineddocument sections associated with the document cluster.

In some further embodiments, the clustering component can calculate aweight for each context word of each seed document. For each contextword ranked equal to or less than a predefined rank, the weight iscalculated based on the calculated distance multiplied by its assignedranking score (i.e., ranking score*(1−distance)). Alternatively, forcontext words ranked equal to or less than the predefined rank andincluded in a seed document that is the only document within a section,the weight is calculated based on a calculated probability that thecontext word will occur within the seed document multiplied by itsassigned ranking score (i.e., ranking score*calculated probability).

At block 1630, the clustering component can once again rank and select apredefined number (e.g., 2) of the highest weighted words from each seeddocument section as the words that are most representative of, or inother words most important to, the seed document section. In thisregard, the clustering component 532 can determine, for a documentcluster, a plurality of document sections that are each associated witha set of highest weighted words. In some aspects, the set of highestweighted words associated with a document section can include apredefined number (e.g., 2) of highest weighted words. In this way, theclustering component can generate a document cluster having a pluralityof document sections, each document section being associated with a setof most important (e.g., highest weighted) words, also referenced hereinas “seed terms.”

At step 1640, the clustering component can determine phrases (e.g., oneor more consecutive words including a seed term) that are mostrepresentative or relevant to a document cluster based on the set(s) ofseed terms determined for the document sections within the cluster. Theclustering component can select each seed term and parse all phrasesfrom documents within the document cluster that include the seed term.In some aspects, a maximum number of words in a phrase can be defined,such that each parsed phrase cannot exceed a predefined number of words.In other words, each seed term can be evaluated as a single term phrase,and other multi-word phrases can also be evaluated, each multi-wordphrase having up to the predefined number of words. The clusteringcomponent can first determine the phrases that exist within the documentcluster based on the seed terms determined for the document sectionswithin the cluster. In other words, each seed term is selected and eachdocument within the document cluster is searched to identify the variousphrases including the seed term. The clustering component can calculatea weight for each determined phrase associated with a seed term,including the single term phrase (i.e., seed term) and determinedmulti-word phrases, by calculating a frequency that the seed term occurswithin the set(s) of seed terms determined for the document sections,multiplied by a frequency that the determined phrase occurs within thedocuments of the cluster. The clustering component can then identifywhich phrase(s) associated with a seed term should be selected asrepresentative of a document section by comparing the calculated weightsfor the phrases based on the number of terms included within the phrase,and determining its significance to the cluster. In this way, eachdocument section in a document cluster can now be associated with a setof representative phrases, and the document cluster can be associatedwith a plurality of representative phrases including the associated setsof representative phrases. As referenced herein, the plurality ofrepresentative phrases associated with a document cluster can bereferred to as “cluster phrases.” At step 1650, the computing device canstore the determined representative phrases for each document cluster ina memory. In some embodiments, the determined representative phrases foreach document cluster can be stored, indexed, searched, or furtheranalyzed to extract topics and/or subtopics from the document corpus tomore index the document corpus for improved searching.

In some embodiments, the language model generating component can employadvanced linguistic concepts of discourse communities andintertextuality to strategically link (e.g., merge) the generateddocument clusters and by doing so, determine topics and subtopics thatcan be employed to more efficiently index and more efficiently searchrelevant documents within the document corpus. More specifically, oncethe clustering component has determined a set of cluster phrases foreach document cluster, cluster merging component can further analyze thegenerated document clusters and corresponding cluster phrases tostrategically group, link, or merge the generated document clustersbased on identified overlapping portions of the cluster phrases. Thecluster merging component can compare the cluster phrases associatedwith each generated document cluster and determine whether at least athreshold number (e.g., 15) of the corresponding cluster phrases overlapor are in common with one another. If the cluster merging componentdetermines that the cluster phrases between a pair of generated documentclusters has at least the threshold number of intersecting clusterphrases, the cluster merging component can generate a logical linkbetween the document clusters. In some aspects, the clusters can bemerged to generate a new document cluster associated with all phrasesfrom each merged cluster. For other pairs determined having less thanthe threshold number of intersecting cluster phrases, a logical link isnot generated. In this regard, clusters having being analyzed by thecluster merging component can be referenced herein as merged clusters,whereby a merged cluster can include one or more clusters that may ormay not have been selectively merged. The generation of logical links or“merging” of various document clusters, by cluster merging component,can identify a broader hierarchical level of cluster phrases that arerelevant to groups of one or more document clusters (hereinafterreferred to as “cluster groups”) and thereby the electronic documentsincluded therein. In other words, cluster phrases that are determinedbetween a set of document clusters that are linked (i.e., a set ofcluster phrases corresponding to merged document clusters) can providehigher level search terms for improving efficiency when searching theelectronic document corpus based on a received input, such as a command.

In some further embodiments, the a semantic grouping component, such assemantic grouping component 536 of FIG. 5, analyzes merged documentclusters (“merged clusters”) to identify groups of merged clusters thatare similar, or in other words having contextually similar documentstherein. A merged cluster can include one or more clusters merged bycluster merging component, and corresponding sets of cluster phrases,such as those determined by cluster merging component. For each mergedcluster, referenced herein as a “seed cluster”, the semantic groupingcomponent compares the associated set of cluster phrases to other setsof cluster phrases associated with other merged clusters. In someaspects, the semantic grouping component can select a threshold quantity(e.g., 4) of other merged clusters determined to have in common at leasta threshold number (e.g., 10) of cluster phrases (e.g., intersectingcluster phrases) with the seed cluster. In this regard, the semanticgrouping component can generate a link (e.g., an association or logicallink) between the merged clusters based on the determined thresholdnumber of intersecting cluster phrases there between to generate asemantic group of electronic documents. In some aspects, theintersecting cluster phrases can represent topics associated with thelinked merged clusters.

In some further aspects, the semantic grouping component can determinethat the threshold quantity of the other merged clusters compared to theseed cluster, does not meet the threshold number of cluster phrasesintersecting with the seed cluster. In this regard, the semanticgrouping component can determine the stem term(s) (i.e., each word) ofeach cluster phrase associated with the seed cluster and calculate aprobability distribution of the stem term with respect to the clusterphrases associated with the seed cluster, meaning that a probability isdetermined that the stem term occurs or is included within the clusterphrases associated with the seed cluster. Further, the semantic groupingcomponent can normalize, or in other words calculate a probabilitydistribution (a “cluster description profile”), for each stem termwithin the cluster phrases associated with the seed cluster based on thefrequenc(ies) determined for the stem terms within the cluster phrase.The semantic grouping component can thus associate the clusterdescription profile with the seed cluster as a proxy attractor.

Further, the semantic grouping component can calculate a distance (e.g.,Jenson-Shannon divergence score) based on the proxy attractors of theseed cluster relative to the cluster attractors associated with at leasta threshold quantity (e.g., 4) of other merged clusters. To this end,the semantic grouping component can select the other merged clustersdetermined to have a lowest entropy score until the threshold quantityof other merged clusters is met. The semantic grouping component canthus generate a group of merged clusters (“cluster group”) that includesthe seed cluster up to the threshold number of other merged clustersthat are determined similar to the seed cluster.

Provided that a cluster group including a corresponding set of mergedclusters is generated by semantic grouping component, the indexingcomponent can employ a topic extraction component, such as topicextraction component 538 of FIG. 5, to further organize the corpus intoidentified topics and concepts. Among other things, topic extractioncomponent can determine the top two most important or relevant clusterphrases, referenced herein as “cluster tags,” for each merged cluster(i.e., a seed cluster) in the cluster group. The topic extractioncomponent can, for each cluster phrase of a seed cluster, calculate aweight for the cluster phrase utilizing the formula:

${{tag} = {\underset{{phrase}:p}{\arg \mspace{14mu} \max}{\sum\limits_{\underset{{cluster}:c}{similar}}{\log ( {2 + {{phrase\_ frequency}( {p,c} )}} )}}}},$

where phrase_frequency corresponds to a number of documents within theseed cluster containing the cluster phrase. The topic extractioncomponent can rank the cluster phrases, such that the cluster phrasesdetermined to have the highest weight are selected as the “cluster tags”of the merged cluster. In some aspects, a predefined or maximum numberof cluster tags can be selected for each merged cluster. In someembodiments, the topic extraction component can tag or associate amerged cluster with its selected cluster tags. This process can berepeated for each merged cluster in the cluster group. The topicextraction component can rank the cluster tags according to popularityof the tags amongst all of merged document clusters of the corpus.

The topic extraction component can identify the clusters thatincorporate a determined highest ranked or most frequently occurringcluster tag and that is directly linked or merged to another one of themerged clusters also having the determined highest ranked cluster tag.The topic extraction component can identify other merged clustersassociated with the determined highest ranked cluster tag, and with theidentified merged clusters in the same cluster group and incorporatingthe highest ranked tag, generate a topic-based group of merged clusters.The topic-based group can be associated with a topic and one or moresub-topics. The topic extraction component can identify a plurality oftopics each having different sub-topics.

The topic extraction component can progress on to the next highestranked cluster after completing the generation of the topic-based groupsassociated with determined highest ranked cluster tag. Similarly, mergedclusters can be identified based on a determination that they are taggedwith the next highest ranked cluster and being directly linked to oneanother. The topic extraction component can exclude all merged clustersincluded in already-generated topic-based groups. This process can berepeated until generation of topic-based groups is exhausted, or inother words, each merged cluster is associated with or included in atopic-based group having defined topics and/or sub-topics. The indexingcomponent can employ the topic-based groups, each being associated witha defined topic and/or sub-topics, to generate the index of documentswithin the document corpus. In this way, the index can be employed toefficiently search the electronic document corpus based on topics and/orsub-topics

The computing device can store the generated topic-based groups, or theassociated topics and/or sub-topics, in a memory. In some embodiments,the topics and/or sub-topics can be indexed in association with eachtopic-based group. To this end, the computing device can receive acommand, such as a text-based command received from a digital assistantdevice 210 of FIG. 2. The computing device can search the index toidentify, from the generated plurality of document clusters, one or moreof the clusters that are relevant to the received command. In variousembodiments, the generated plurality of document clusters can be indexedto more efficiently search relevant portions of the electronic documentsof the corpus based on a received input, such as a received command. Thecomputing device can select an action dataset of the plurality of storedaction datasets, whereby the selected action dataset is mapped to acommand template that is referenced (e.g., tagged, titled) in adetermined most relevant one of the electronic documents of thedetermined relevant cluster. In various embodiments, the computingdevice can employ various components, as described in accordance withFIG. 3, to facilitate the searching, ranking, and selection of an actiondataset that is determined most relevant to a received command. Thecomputing device can employ, for instance, a language model searchingcomponent, such as a language model searching component 330 of FIG. 3,for searching the various electronic documents of the corpus; and/or anaction dataset ranking component, such as action dataset rankingcomponent 340 of FIG. 3 for ranking and/or boosting potentially relevantaction datasets based on a variety of factors, such as obtainedcontextual data (e.g., received from the digital assistant device),among other things.

Looking now to FIG. 17, a flow diagram 1700 is provided to depict anexemplary method for interpreting and understanding commands, such asone received by a digital assistant device, in order to select a mostrelevant or appropriate response in accordance with some embodiments ofthe present disclosure. As described herein, a computing device, such asdigital assistant server 302 of FIG. 3, can obtain a plurality ofcommand templates that are each mapped to one of a plurality of actiondatasets, such as an action dataset 410 of FIG. 4. The action datasetscan be stored in a database coupled to the computing device, such asdatabase 140 of FIG. 1. In some aspects, the computing device canmaintain a table, mapping, or index of the stored action datasets andcorresponding command templates, among other things.

The computing device can generate, for each command template of theobtained plurality of command templates, an associated set of syntheticelectronic documents. For instance, the computing device can include alanguage model generating component, such as language model generatingcomponent 510 of FIG. 5, to generate a corpus of electronic documentsthat are relevant to an application-specific command space that isdefined based on the obtained plurality of command templates. In variousembodiments, the computing device can generate, for each commandtemplate, a query (e.g. including terms of or corresponding to thecommand template) that can be submitted to a search engine to retrieve,among other things, a variety of electronic documents that aredetermined relevant to the query. The computing device can extractintentionally or randomly, as described herein, one or more excerptsfrom the retrieved variety of electronic documents to generate aplurality of synthetic electronic documents that are associated with thecommand template.

The computing device can modify, for each command template of theobtained plurality of command templates, the corresponding plurality ofgenerated synthetic electronic documents so that each is tagged ortitled with the terms or keywords of the command template. In thisregard, the computing device can save the modified synthetic electronicdocuments so that each is tagged or titled with its correspondingcommand template. The modified synthetic documents stored for all of theobtained command templates can be employed as a corpus of electronicdocuments for purposes of generating a language model that is applicableto a digital assistant device in accordance with embodiments describedherein. Each word can be selected from each document and can be assigneda calculated importance score based on a determined entropy of theword's calculated probability distribution multiplied by the log of adetermined frequency of the selected word within the entire documentcorpus (i.e., 1/entropy* log(document_frequency)). Once an importancescore for each word is calculated, the words can be ranked based ontheir calculated importance scores. The ranked listing of words can thenbe split into a plurality of segments, such that each document within acorresponding one of the segments is assigned a ranking score orvalue.). In some aspects, words included in groups ranked higher than apredefined rank (e.g., 6) can be ignored, while words included in groupsranked equal to or less than the predefined rank can be considered forfurther evaluation. Utilizing this technique, the clustering component532 can remove from consideration words that are too specific, whileidentifying “context words” having assigned ranking scores.

As such, the computing device can analyze the corpus of electronicdocuments and generate a plurality of document clusters therefrom, asdescribed in FIG. 5. In various embodiments, the computing device candetermine cluster attractors for each document in the plurality ofdocuments, each document comprising at least one term, the methodcomprising: calculating, in respect of each term, a probabilitydistribution indicative of the frequency of occurrence of the, or each,other term that co-occurs with said term in at least one of saiddocuments; calculating, in respect of each term, the entropy of therespective probability distribution; selecting at least one of saidprobability distributions as a cluster attractor depending on therespective entropy value. In some aspects, with respect to eachdocument, a probability distribution is calculated, indicative of thefrequency of occurrence of each term in the document. The computingdevice can compare the respective probability distribution of eachdocument with each probability distribution selected as a clusterattractor; and assign each document to at least one cluster depending onthe similarity between the compared probability distributions. In thisregard, the computing device generates a plurality of document clusters,whereby relationships between the neighboring documents are defined by aspanning tree in accordance with entropy scores calculated between thedocuments, among other things.

A clustering component, such as clustering component 532 of FIG. 5, can,for each document within a cluster (i.e., a seed document), compare theseed document relative to each other neighboring document within thegenerated document cluster to calculate a distance (e.g., Jensen-Shannondivergence score) (P1) between the seed document and each otherneighboring document and determine whether a neighboring document shouldbe included in a document section associated with the seed document. Ifthe calculated distance is equal to or less than a threshold value(e.g., 0.75), then the neighboring document can be defined as beingwithin the seed document's “section.” Moreover, if the neighboringdocument is defined within the seed document's section, another distance(P2) can be calculated between the neighboring document and eachextended neighboring document of the neighboring document (e.g., theneighbor of the neighboring document). In this regard, a distancebetween the seed document and the extended neighboring document can thenbe calculated based on both of the calculated distances (P1 and P2). Insome aspects, this distance can be determined based on the formula:1-(1-P1)(1-P2). Similarly, if the calculated distance between the seeddocument and the extended neighboring document is equal to or less thana threshold value (e.g., 0.75), then the extended neighboring documentcan also be defined as being within the seed document's “section.” Insome aspects, this process can continue between the seed document,neighboring document(s), and/or further extended neighboring documents,until a calculated distance between the seed document, neighboringdocument(s), and/or each further extended neighboring documents isdetermined to be greater than the predefined threshold. Utilizing theforegoing, document “sections” within a generated document cluster, eachof which includes electronic documents contextually relevant to a seeddocument, can be identified based on the calculated distances comparedto a threshold. It is contemplated that some documents within a clustermay be included in one or more defined document sections associated withthe document cluster.

In some further embodiments, the clustering component can calculate aweight for each context word of each seed document. For each contextword ranked equal to or less than a predefined rank, the weight iscalculated based on the calculated distance multiplied by its assignedranking score (i.e., ranking score*(1−distance)). Alternatively, forcontext words ranked equal to or less than the predefined rank andincluded in a seed document that is the only document within a section,the weight is calculated based on a calculated probability that thecontext word will occur within the seed document multiplied by itsassigned ranking score (i.e., ranking score*calculated probability).

The clustering component can once again rank and select a predefinednumber (e.g., 2) of the highest weighted words from each seed documentsection as the words that are most representative of, or in other wordsmost important to, the seed document section. In this regard, theclustering component 532 can determine, for a document cluster, aplurality of document sections that are each associated with a set ofhighest weighted words. In some aspects, the set of highest weightedwords associated with a document section can include a predefined number(e.g., 2) of highest weighted words. In this way, the clusteringcomponent can generate a document cluster having a plurality of documentsections, each document section being associated with a set of mostimportant (e.g., highest weighted) words, also referenced herein as“seed terms.”

At block 1710, the clustering component can determine phrases (e.g., oneor more consecutive words including a seed term) that are mostrepresentative or relevant to a document cluster based on the set(s) ofseed terms determined for the document sections within the cluster. Theclustering component can select each seed term and parse all phrasesfrom documents within the document cluster that include the seed term.In some aspects, a maximum number of words in a phrase can be defined,such that each parsed phrase cannot exceed a predefined number of words.In other words, each seed term can be evaluated as a single term phrase,and other multi-word phrases can also be evaluated, each multi-wordphrase having up to the predefined number of words. The clusteringcomponent can first determine the phrases that exist within the documentcluster based on the seed terms determined for the document sectionswithin the cluster. In other words, each seed term is selected and eachdocument within the document cluster is searched to identify the variousphrases including the seed term. The clustering component can calculatea weight for each determined phrase associated with a seed term,including the single term phrase (i.e., seed term) and determinedmulti-word phrases, by calculating a frequency that the seed term occurswithin the set(s) of seed terms determined for the document sections,multiplied by a frequency that the determined phrase occurs within thedocuments of the cluster. The clustering component can then identifywhich phrase(s) associated with a seed term should be selected asrepresentative of a document section by comparing the calculated weightsfor the phrases based on the number of terms included within the phrase,and determining its significance to the cluster. In this way, eachdocument section in a document cluster can now be associated with a setof representative phrases, and the document cluster can be associatedwith a plurality of representative phrases including the associated setsof representative phrases. As referenced herein, the plurality ofrepresentative phrases associated with a document cluster can bereferred to as “cluster phrases.” The computing device can store thedetermined representative phrases for each document cluster in a memory.In some embodiments, the determined representative phrases for eachdocument cluster can be stored, indexed, searched, or further analyzedto extract topics and/or subtopics from the document corpus to moreindex the document corpus for improved searching.

The language model generating component can employ advanced linguisticconcepts of discourse communities and intertextuality to strategicallylink (e.g., merge) the generated document clusters and by doing so,determine topics and subtopics that can be employed to more efficientlyindex and more efficiently search relevant documents within the documentcorpus. At block 1720, once the clustering component has determined aset of cluster phrases for each document cluster, cluster mergingcomponent can further analyze the generated document clusters andcorresponding cluster phrases to strategically group, link, or merge thegenerated document clusters based on identified overlapping portions ofthe cluster phrases, among other things. The cluster merging componentcan compare the cluster phrases associated with each generated documentcluster and determine whether at least a threshold number (e.g., 15) ofthe corresponding cluster phrases overlap or are in common with oneanother. If the cluster merging component determines that the clusterphrases between a pair of generated document clusters has at least thethreshold number of common cluster phrases, the cluster mergingcomponent can generate a logical link between the document clusters. Insome aspects, the clusters can be merged to generate a new documentcluster associated with all phrases from each merged cluster. For otherpairs determined having less than the threshold number of common clusterphrases, a logical link is not generated. In this regard, clustershaving being analyzed by the cluster merging component can be referencedherein as merged clusters, whereby a merged cluster can include one ormore clusters that may or may not have been selectively merged. Thegeneration of logical links or “merging” of various document clusters,by cluster merging component, can identify a broader hierarchical levelof cluster phrases that are relevant to groups of one or more documentclusters (hereinafter referred to as “cluster groups”) and thereby theelectronic documents included therein. In other words, another set ofcluster phrases that are determined between a set of document clustersthat are linked (i.e., a set of cluster phrases corresponding to mergeddocument clusters) can provide higher level search terms for improvingefficiency when searching the electronic document corpus based on areceived input, such as a command.

At block 1730, a semantic grouping component, such as semantic groupingcomponent 536 of FIG. 5, analyzes merged document clusters (“mergedclusters”) to identify groups of merged clusters that are similar, or inother words having contextually similar documents therein. A mergedcluster can include one or more clusters merged by cluster mergingcomponent, and corresponding sets of cluster phrases, such as thosedetermined by cluster merging component. For each merged cluster,referenced herein as a “seed cluster”, the semantic grouping componentcompares the associated set of cluster phrases to other sets of clusterphrases associated with other merged clusters. In some aspects, thesemantic grouping component can select a threshold quantity (e.g., 4) ofother merged clusters determined to have in common at least a thresholdnumber (e.g., 10) of cluster phrases intersecting with the seed cluster.In this regard, the semantic grouping component can generate a link(e.g., an association or logical link) between the merged clusters basedon the determined threshold number of intersecting cluster phrases therebetween to generate a semantic group of electronic documents. In someaspects, the intersecting cluster phrases can represent topicsassociated with the linked merged clusters.

In some further aspects, the semantic grouping component can determinethat the threshold quantity of the other merged clusters compared to theseed cluster, does not meet the threshold number of cluster phrasesintersecting with the seed cluster. In this regard, the semanticgrouping component can determine the stem term(s) (i.e., each word) ofeach cluster phrase associated with the seed cluster and calculate aprobability distribution of the stem term with respect to the thecluster phrases associated with the seed cluster, meaning that aprobability is determined that the stem occurs or is included within thecluster phrases associated with the seed cluster. Further, the semanticgrouping component can normalize, or in other words calculate aprobability distribution (a “cluster description profile”), for eachstem term within the cluster phrases associated with the seed clusterbased on the frequenc(ies) determined for the stem terms within thecluster phrase. The semantic grouping component can thus associate thecluster description profile with the seed cluster as a proxy attractor.

Further, the semantic grouping component can calculate a distance (e.g.,Jenson-Shannon divergence score) based on the proxy attractors of theseed cluster relative to the cluster attractors associated with at leasta threshold quantity (e.g., 4) of other merged clusters. To this end,the semantic grouping component can select the other merged clustersdetermined to have a lowest entropy score until the threshold quantity(e.g., 4) of other merged clusters is met. The semantic groupingcomponent can thus generate a group of merged clusters (“cluster group”)that includes the seed cluster up to the threshold number of othermerged clusters that are determined similar to the seed cluster.

Provided that a cluster group including a corresponding set of mergedclusters is generated by semantic grouping component, the indexingcomponent can employ a topic extraction component, such as topicextraction component 538 of FIG. 5, to further organize the corpus intoidentified topics and concepts. Among other things, topic extractioncomponent can, at block 1740, determine the top two most important orrelevant cluster phrases, referenced herein as “cluster tags,” for eachmerged cluster (i.e., a seed cluster) in the cluster group. The topicextraction component can, for each cluster phrase of a seed cluster,calculate a weight for the cluster phrase utilizing the formula:

${{tag} = {\underset{{phrase}:p}{\arg \mspace{14mu} \max}{\sum\limits_{\underset{{cluster}:c}{similar}}{\log ( {2 + {{phrase\_ frequency}( {p,c} )}} )}}}},$

where phrase_frequency corresponds to a number of documents within theseed cluster containing the cluster phrase. The topic extractioncomponent can rank the cluster phrases, such that the cluster phrasesdetermined to have the highest weight are selected as the “cluster tags”of the merged cluster. In some aspects, a predefined or maximum numberof cluster tags can be selected for each merged cluster. In someembodiments, the topic extraction component can tag or associate amerged cluster with its selected cluster tags. This process can berepeated for each merged cluster in the cluster group. The topicextraction component can rank the cluster tags according to popularityof the tags amongst all of merged document clusters of the corpus.Further, topic extraction component can rank the cluster tags within theentire document corpus based on a determined popularity (e.g., number ofoccurrences) amongst the tags associated with the various mergedclusters in the document corpus.

At block 1750, the topic extraction component can extract topics andcorresponding sub-topics from the determined cluster tags, forassociation with each cluster group. The topic extraction component canidentify the clusters that incorporate a determined highest ranked ormost frequently occurring cluster tag and that is directly linked ormerged to another one of the merged clusters also having the determinedhighest ranked cluster tag. The topic extraction component can identifyother merged clusters associated with the determined highest rankedcluster tag, and with the identified merged clusters in the same clustergroup and incorporating the highest ranked tag, generate a topic-basedgroup of merged clusters. The topic-based group can be associated with atopic and one or more sub-topics. The topic extraction component canidentify a plurality of topics each having different sub-topics.

The topic extraction component can progress on to the next highestranked cluster after completing the generation of the topic-based groupsassociated with determined highest ranked cluster tag. Similarly, mergedclusters can be identified based on a determination that they are taggedwith the next highest ranked cluster and being directly linked to oneanother. The topic extraction component can exclude all merged clustersincluded in already-generated topic-based groups. This process can berepeated until generation of topic-based groups is exhausted, or inother words, each merged cluster is associated with or included in atopic-based group having defined topics and/or sub-topics. The indexingcomponent can employ the topic-based groups, each being associated witha defined topic and/or sub-topics, to generate the index of documentswithin the document corpus. In this way, the index can be employed toefficiently search the electronic document corpus based on topics and/orsub-topics

At block 1760, the computing device can store the generated topic-basedgroups, or the associated topics and/or sub-topics, in a memory. In someembodiments, the topics and/or sub-topics can be indexed in associationwith each topic-based group. To this end, the computing device canreceive a command, such as a text-based command received from a digitalassistant device 210 of FIG. 2. The computing device can search theindex to identify, from the generated plurality of document clusters,one or more of the clusters that are relevant to the received command.In various embodiments, the generated plurality of document clusters canbe indexed to more efficiently search relevant portions of theelectronic documents of the corpus based on a received input, such as areceived command. The computing device can select an action dataset ofthe plurality of stored action datasets, whereby the selected actiondataset is mapped to a command template that is referenced (e.g.,tagged, titled) in a determined most relevant one of the electronicdocuments of the determined relevant cluster. In various embodiments,the computing device can employ various components, as described inaccordance with FIG. 3, to facilitate the searching, ranking, andselection of an action dataset that is determined most relevant to areceived command. The computing device can employ, for instance, alanguage model searching component, such as a language model searchingcomponent 330 of FIG. 3, for searching the various electronic documentsof the corpus, an action dataset ranking component 340 for rankingand/or boosting potentially relevant action datasets based on a varietyof factors, such as obtained contextual data (e.g., received from thedigital assistant device), among other things.

Having described various embodiments of the present disclosure, anexemplary operating environment in which embodiments of the disclosurecan be implemented is described below in order to provide a generalcontext for various aspects of the disclosure. Referring to the figuresin general and initially to FIG. 18 in particular, an exemplaryoperating environment for implementing embodiments of the presentdisclosure is shown and designated generally as computing device 1800.The computing device 1800 is but one example of a suitable computingenvironment and is not intended to suggest any limitation as to thescope of use or functionality of embodiments of the disclosure. Neithershould the computing device 1800 be interpreted as having any dependencyor requirement relating to any one component nor any combination ofcomponents illustrated.

Embodiments of the disclosure may be described in the general context ofcomputer code or machine-useable instructions, includingcomputer-useable or computer-executable instructions such as programcomponents, being executed by a computer or other machine, such as apersonal data assistant or other handheld device. Generally, programcomponents include routines, programs, objects, components, datastructures, and the like, and/or refer to code that performs particulartasks or implements particular abstract data types. Embodiments of thedisclosure can be practiced in a variety of system configurations,including, but not limited to, hand-held devices, consumer electronics,general-purpose computers, more specialty computing devices, and thelike. Embodiments of the disclosure also can be practiced in distributedcomputing environments where tasks are performed by remote-processingdevices that are linked through a communications network.

With continued reference to FIG. 18, the computing device 1800 includesa bus 1810 that directly or indirectly couples the following devices: amemory 1812, one or more processors 1814, one or more presentationcomponents 1816, one or more input/output (I/O) ports 1818, one or moreI/O components 1820, and an illustrative power supply 1822. The bus 1810represents what may be one or more busses (such as an address bus, databus, or combination thereof). Although the various blocks of FIG. 18 areshown with lines for the sake of clarity, in reality, these blocksrepresent logical, not necessarily actual, components. For example, onecan consider a presentation component such as a display device to be anI/O component. Also, processors have memory. The inventors hereofrecognize that such is the nature of the art, and reiterate that thediagram of FIG. 18 is merely illustrative of an exemplary computingdevice that can be used in connection with one or more embodiments ofthe present disclosure. Distinction is not made between such categoriesas “workstation,” “server,” “laptop,” “hand-held device,” etc., as allare contemplated within the scope of FIG. 18 and reference to “computingdevice.”

The computing device 1800 typically includes a variety ofcomputer-readable media. Computer-readable media may be any availablemedia that is accessible by the computing device 100 and includes bothvolatile and nonvolatile media, removable and non-removable media.Computer-readable media comprises computer storage media andcommunication media; computer storage media excluding signals per se.Computer storage media includes volatile and nonvolatile, removable andnon-removable media implemented in any method or technology for storageof information such as computer-readable instructions, data structures,program components or other data. Computer storage media includes, butis not limited to, RAM, ROM, EEPROM, flash memory or other memorytechnology, CD-ROM, digital versatile disks (DVD) or other optical diskstorage, magnetic cassettes, magnetic tape, magnetic disk storage orother magnetic storage devices, or any other medium which can be used tostore the desired information and which can be accessed by the computingdevice 100. Communication media, on the other hand, embodiescomputer-readable instructions, data structures, program components orother data in a modulated data signal such as a carrier wave or othertransport mechanism and includes any information delivery media. Theterm “modulated data signal” means a signal that has one or more of itscharacteristics set or changed in such a manner as to encode informationin the signal. By way of example, and not limitation, communicationmedia includes wired media such as a wired network or direct-wiredconnection, and wireless media such as acoustic, RF, infrared and otherwireless media. Combinations of any of the above should also be includedwithin the scope of computer-readable media.

The memory 1812 includes computer-storage media in the form of volatileand/or nonvolatile memory. The memory may be removable, non-removable,or a combination thereof. Exemplary hardware devices include solid-statememory, hard drives, optical-disc drives, and the like. The computingdevice 1800 includes one or more processors that read data from variousentities such as the memory 1812 or the I/O components 1820. Thepresentation component(s) 1816 present data indications to a user orother device. Exemplary presentation components include a displaydevice, speaker, printing component, vibrating component, and the like.

The I/O ports 1818 allow the computing device 1800 to be logicallycoupled to other devices including the I/O components 1820, some ofwhich may be built in. Illustrative I/O components include a microphone,joystick, game pad, satellite dish, scanner, printer, wireless device, acontroller, such as a stylus, a keyboard and a mouse, a natural userinterface (NUI), and the like.

A NUI processes air gestures, voice, or other physiological inputsgenerated by a user. These inputs may be interpreted, for instance, aswords or symbols appearing in programs and/or apps, and the likepresented by the computing device 1800. A NUI implements any combinationof speech recognition, touch and stylus recognition, facial recognition,biometric recognition, gesture recognition both on screen and adjacentto the screen, air gestures, head and eye tracking, and touchrecognition associated with displays on the computing device 1800. Thecomputing device 1800 may be equipped with depth cameras, such as,stereoscopic camera systems, infrared camera systems, RGB camerasystems, and combinations of these for gesture detection andrecognition. Additionally, the computing device 1800 may be equippedwith accelerometers or gyroscopes that enable detection of motion. Theoutput of the accelerometers or gyroscopes may be provided to thedisplay of the computing device 1800 to render immersive augmentedreality or virtual reality.

Aspects of the subject matter described herein may be described in thegeneral context of computer-executable instructions, such as programcomponents, being executed by a mobile device. Generally, programcomponents include routines, programs, objects, components, datastructures, and so forth, which perform particular tasks or implementparticular abstract data types. Aspects of the subject matter describedherein also can be practiced in distributed computing environments wheretasks are performed by remote processing devices that are linked througha communications network. In a distributed computing environment,program components can be located in both local and remote computerstorage media including memory storage devices. The computer-useableinstructions form an interface to allow a computer to react according toa source of input. The instructions cooperate with other code segmentsto initiate a variety of tasks in response to data received inconjunction with the source of the received data.

As can be understood, embodiments of the present disclosure providesystems, methods, and computer-readable storage media for, among otherthings, crowdsourcing actions and commands to enable the generation,indexing, distribution, and instant use of action datasets andassociated commands across all users of a digital assistant,irrespective of a received command having be specifically defined for aparticular action to be performed. The present disclosure has beendescribed in relation to particular embodiments, which are intended inall respects to be illustrative rather than restrictive. Alternativeembodiments will become apparent to those of ordinary skill in the artto which the present disclosure pertains without departing from itsscope.

While the disclosure is susceptible to various modifications andalternative constructions, certain illustrated embodiments thereof areshown in the drawings and have been described above in detail. It shouldbe understood, however, that there is no intention to limit thedisclosure to the specific forms disclosed, but on the contrary, theintention is to cover all modifications, alternative constructions, andequivalents falling within the spirit and scope of the disclosure.

What is claimed is:
 1. A non-transitory computer storage medium storingcomputer-useable instructions that, when used by at least one computingdevice, cause the at least one computing device to: obtain a set ofdetermined representative phrases for each electronic document clusterin a generated plurality of electronic document clusters; define aplurality of logical relationships amongst the generated plurality ofelectronic document clusters; determine a plurality of contextuallysimilar electronic document groups from the generated plurality ofelectronic document clusters based on the defined plurality of logicalrelationships, each contextually similar electronic document groupincluding a corresponding portion of the generated plurality ofelectronic document clusters; determine a set of cluster tags for eachcontextually similar electronic document group of the determinedplurality of contextually similar electronic document groups; for eachcontextually similar electronic document group of the determinedplurality of contextually similar electronic document groups, extract aset of topics and corresponding sub-topics from the determinedcorresponding set of cluster tags; and store the extracted sets oftopics and corresponding sub-topics to a data store, each stored set oftopics and corresponding sub-topics being associated withNon-Provisional Patent Application 41168.282922 one of the determinedplurality of contextually similar electronic document groups.
 2. Themedium of claim 1, the instructions further cause the at least onecomputing device to: generate a searchable index based on the storedsets of topics and corresponding sub-topics; determine that a portion ofthe generated plurality of document clusters is relevant to a commandreceived from a remote computing device based on the generatedsearchable index; and provide a determined result to the remotecomputing device based on the determined relevant portion of thegenerated plurality of document clusters as a response to the receivedcommand.
 3. The medium of claim 2, wherein the generated resultcorresponds to the determined relevant portion of the generatedplurality of document clusters.
 4. The medium of claim 3, wherein thegenerated result includes at least one of a plurality of action datasetsmapped to the determined relevant portion of the generated plurality ofdocument clusters.
 5. The medium of claim 1, wherein each electronicdocument cluster in the generated plurality of electronic documentclusters includes a portion of electronic documents of a plurality ofelectronic documents.
 6. The medium of claim 5, wherein each electronicdocument of the plurality of electronic documents is generated based onother electronic documents retrieved from at least one remote datastore.
 7. The medium of claim 6, wherein each other electronic documentis retrieved based on a query, the query being generated based on one ofa plurality of stored command templates.
 8. A computer-implementedmethod for extracting topics and/or sub-topics from merged documentclusters, the method comprising: obtain, by a computing device, a set ofdetermined representative phrases for each electronic document clusterin a generated plurality of electronic document clusters; define, by thecomputing device, a plurality of logical relationships amongst thegenerated plurality of electronic document clusters; determine, by thecomputing device, a plurality of contextually similar electronicdocument groups from the generated plurality of electronic documentclusters based on the defined plurality of logical relationships, eachcontextually similar electronic document group including a correspondingportion of the generated plurality of electronic document clusters;determine, by the computing device, a set of cluster tags for eachcontextually similar electronic document group of the determinedplurality of contextually similar electronic document groups; for eachcontextually similar electronic document group of the determinedplurality of contextually similar electronic document groups, extract,by the computing device, a set of topics and corresponding sub-topicsfrom the determined corresponding set of cluster tags; and store, by thecomputing device, the extracted sets of topics and correspondingsub-topics to a data store, each stored set of topics and correspondingsub-topics being associated with one of the determined plurality ofcontextually similar electronic document groups.
 9. The method of claim8, the instructions further cause the at least one computing device to:generate, by the computing device, a searchable index based on thestored sets of topics and corresponding sub-topics; determine, by thecomputing device, that a portion of the generated plurality of documentclusters is relevant to a command received from a remote computingdevice based on the generated searchable index; and providing, by thecomputing device, a determined result to the remote computing devicebased on the determined relevant portion of the generated plurality ofdocument clusters as a response to the received command.
 10. The methodof claim 7, wherein the generated result corresponds to the determinedrelevant portion of the generated plurality of document clusters. 11.The method of claim 10, wherein the generated result includes at leastone of a plurality of action datasets mapped to the determined relevantportion of the generated plurality of document clusters.
 12. The methodof claim 8, wherein each electronic document cluster in the generatedplurality of electronic document clusters includes a portion ofelectronic documents of a plurality of electronic documents.
 13. Themethod of claim 12, wherein each electronic document of the plurality ofelectronic documents is generated based on other electronic documentsretrieved from at least one remote data store.
 14. The method of claim13, wherein each other electronic document is retrieved based on aquery, the query being generated based on one of a plurality of storedcommand templates.
 15. A system comprising: at least one processor; andat least one storage device storing computer-useable instructions that,when used by the at least one processor, cause the at least oneprocessor to: obtain a set of determined representative phrases for eachelectronic document cluster in a generated plurality of electronicdocument clusters; define a plurality of logical relationships amongstthe generated plurality of electronic document clusters; determine aplurality of contextually similar electronic document groups from thegenerated plurality of electronic document clusters based on the definedplurality of logical relationships, each contextually similar electronicdocument group including a corresponding portion of the generatedplurality of electronic document clusters; determine a set of clustertags for each contextually similar electronic document group of thedetermined plurality of contextually similar electronic document groups;for each contextually similar electronic document group of thedetermined plurality of contextually similar electronic document groups,extract a set of topics and corresponding sub-topics from the determinedcorresponding set of cluster tags; and store the extracted sets oftopics and corresponding sub-topics to a data store, each stored set oftopics and corresponding sub-topics being associated with one of thedetermined plurality of contextually similar electronic document groups.16. The system of claim 15, wherein the instructions further cause theat least one computing device to: generate a searchable index based onthe stored sets of topics and corresponding sub-topics; determine that aportion of the generated plurality of document clusters is relevant to acommand received from a remote computing device based on the generatedsearchable index; and provide a determined result to the remotecomputing device based on the determined relevant portion of thegenerated plurality of document clusters as a response to the receivedcommand.
 17. The medium of claim 16, wherein the generated resultcorresponds to the determined relevant portion of the generatedplurality of document clusters.
 18. The medium of claim 17, wherein thegenerated result includes at least one of a plurality of action datasetsmapped to the determined relevant portion of the generated plurality ofdocument clusters.
 19. The medium of claim 15, wherein each electronicdocument cluster in the generated plurality of electronic documentclusters includes a portion of electronic documents of a plurality ofelectronic documents.
 20. The medium of claim 5, wherein each electronicdocument of the plurality of electronic documents is generated based onother electronic documents retrieved from at least one remote datastore.
 21. The medium of claim 20, wherein each other electronicdocument is retrieved based on a query, the query being generated basedon one of a plurality of stored command templates.